Removed unnecessary sidemenu links function, as the overriding class can just call the parent to get the standard links.

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@40 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-29 15:55:50 +00:00
parent 2feb7f60a4
commit 1145d293b2

View File

@@ -36,20 +36,15 @@
*/ */
class AppController extends Controller { class AppController extends Controller {
function sideMenuStandardLinks() { function sideMenuLinks() {
return array( return array(
array('name' => 'Standard Menu', 'header' => true), array('name' => 'Common', 'header' => true),
array('name' => 'Site Map', 'url' => array('controller' => 'maps', 'action' => 'view', 1)), 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' => 'Tenants', 'url' => array('controller' => 'contacts', 'action' => 'index')),
array('name' => 'Units', 'url' => array('controller' => 'units', 'action' => 'index')), array('name' => 'Units', 'url' => array('controller' => 'units', 'action' => 'index')),
); );
} }
function sideMenuLinks() {
return $this->sideMenuStandardLinks();
}
function beforeRender() { function beforeRender() {
$this->set('sidemenu', $this->sideMenuLinks()); $this->set('sidemenu', $this->sideMenuLinks());
} }