Created
January 22, 2011 08:21
-
-
Save shameerc/790978 to your computer and use it in GitHub Desktop.
Example of a kohana configuration file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php defined('SYSPATH') or die('No direct script access.'); | |
| class Controller_Sample extends Controller | |
| { | |
| public function action_index() | |
| { | |
| $testConfig = Kohana::config('test'); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php defined('SYSPATH') or die('No direct script access.'); | |
| // file modules/test/config/test.php | |
| return array( | |
| 'default' => array( | |
| 'item1' => 'value1' | |
| ) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment