summaryrefslogtreecommitdiff
path: root/lib/Minz/ActionController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/ActionController.php')
-rw-r--r--lib/Minz/ActionController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Minz/ActionController.php b/lib/Minz/ActionController.php
index 232a4ef9b..123b9054c 100644
--- a/lib/Minz/ActionController.php
+++ b/lib/Minz/ActionController.php
@@ -14,7 +14,9 @@ class Minz_ActionController {
* Constructeur
*/
public function __construct () {
- $this->view = new Minz_View ();
+ $this->view = new Minz_View();
+ $view_path = Minz_Request::controllerName() . '/' . Minz_Request::actionName() . '.phtml';
+ $this->view->_path($view_path);
$this->view->attributeParams ();
}