Skip to content

Instantly share code, notes, and snippets.

@ronan-gloo
Created October 10, 2012 19:49
Show Gist options
  • Save ronan-gloo/3867967 to your computer and use it in GitHub Desktop.
Save ronan-gloo/3867967 to your computer and use it in GitHub Desktop.
// parent controller in global namespace
abstract class Controller_Application extends Controller {
protected static $_vm = 'application';
public function before()
{
$this->view = ViewModel::forge($this->_vm);
}
}
// Request to this controller form module "admin" throw a OutOfBoundsException
// from ViewModel class
namespace Admin;
class Controller_Home extends \Controller_Application {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment