<?php
namespace Blog;
class Controller_Base extends \Controller
{
public function _init()
{
// load your config here
\Config::load('config');
parent::_init();
}
}
And then your controllers:<?php
namespace Blog;
class Controller_Blog extends Controller_Base
{
public function action_index()
{
// load your thing here
}
}
<?php
namespace mymodule;
class Controller_Mine extends \Controller_Base
{
}
It looks like you're new here. If you want to get involved, click one of these buttons!