Created
October 10, 2012 19:49
-
-
Save ronan-gloo/3867967 to your computer and use it in GitHub Desktop.
This file contains 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
// 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