| base ( index_page, protocol ) | ใช้คืนค่า site_protocol และ site_domain |
|---|
method:base ( index_page, protocol );
return type:string
special:static
content:ใช้คืนค่า site_protocol และ site_domain
example:echo url::base ( true, "ftp" );
comment:ตัวแปร index_page กำหนด true เพื่อที่จะต้องการให้คืนค่า index.php ด้วย ตัวแปร protocol ใช้กำหนด protocol ที่จะแทนที่ protocol ที่เป็นอยู่จริงของ url