Skip to content

Instantly share code, notes, and snippets.

@shameerc
Created January 22, 2011 08:21
Show Gist options
  • Select an option

  • Save shameerc/790978 to your computer and use it in GitHub Desktop.

Select an option

Save shameerc/790978 to your computer and use it in GitHub Desktop.
Example of a kohana configuration file
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Sample extends Controller
{
public function action_index()
{
$testConfig = Kohana::config('test');
}
}
<?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