Skip to content

Instantly share code, notes, and snippets.

@ellisio
Created February 18, 2011 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellisio/834156 to your computer and use it in GitHub Desktop.
Save ellisio/834156 to your computer and use it in GitHub Desktop.
<?php
/**
* Enable modules. Modules are referenced by a relative or absolute path.
*/
if (Kohana::$environment === Kohana::PRODUCTION)
{
Kohana::modules(array(
'cache' => MODPATH.'cache',
'database' => MODPATH.'database'
));
}
else
{
Kohana::modules(array(
'userguide' => MODPATH.'userguide',
'cache' => MODPATH.'cache',
'database' => MODPATH.'database'
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment