...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<?php class MyPlgnController extends AppController { public function preAction() { // Set the view directory to the default core view directory so that AppController preAction code uses the appropriate // directory for the structure file $this->structure->setDefaultView(APPDIR); parent::preAction(); // Override default view directory with that of the $this->view->view = "default";plugin $this->structure>view->view = "default"; } } ?> |
...