| config() | ใช้คืนค่า value ของตัวแปร $config ตาม key ที่กำหนด |
|---|
method:config ( key, slash, required );
return type:string
special:static
content:ใช้คืนค่า value ของตัวแปร $config ตาม key ที่กำหนด ( ตัวแปร config คือค่าที่กำหนดใน folder "system/config" )
example:echo Kohana::config ( "locale.language" );
comment:ตัวแปร key คือ group.key โดย group คือ ชื่อไฟล์ และ key คือ key ของตัวแปร $config ในไฟล์