From ddfab72ecc7e0ff0648aa4f938c9c77ef8b2dd5e Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Tue, 24 Jun 2014 20:47:30 +1000 Subject: [PATCH] Make {{ this.controller }} available --- modules/cms/classes/Controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index 17da15539..ff0b8cd31 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -150,6 +150,7 @@ class Controller extends BaseController * The 'this' variable is reserved for default variables. */ $this->vars['this'] = [ + 'controller' => $this, 'layout' => $this->layout, 'page' => $this->page, 'param' => $this->router->getParameters(),