diff --git a/app_controller.php b/app_controller.php index 87357ed..ae6a785 100644 --- a/app_controller.php +++ b/app_controller.php @@ -35,5 +35,24 @@ * @subpackage cake.app */ class AppController extends Controller { + + function sideMenuStandardLinks() { + return array( + array('name' => 'Standard Menu', 'header' => true), + array('name' => 'Site Map', 'url' => array('controller' => 'maps', 'action' => 'view', 1)), + array('hr' => true), + array('name' => 'Tenants', 'url' => array('controller' => 'contacts', 'action' => 'index')), + array('name' => 'Units', 'url' => array('controller' => 'units', 'action' => 'index')), + ); + } + + function sideMenuLinks() { + return $this->sideMenuStandardLinks(); + } + + function beforeRender() { + $this->set('sidemenu', $this->sideMenuLinks()); + } + } ?> \ No newline at end of file diff --git a/views/contacts/view.ctp b/views/contacts/view.ctp index 5d6e968..d2823c9 100644 --- a/views/contacts/view.ctp +++ b/views/contacts/view.ctp @@ -1,7 +1,6 @@
| + + + element('sidemenu', array('menu' => $sidemenu)); ?> + + + | + +
+
+
-
-
+
+
+
-
link(__('CakePHP: the rapid development php framework', true), 'http://cakephp.org'); ?>-
flash(); ?>
-
|
+
+
+