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@40 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -36,20 +36,15 @@
|
||||
*/
|
||||
class AppController extends Controller {
|
||||
|
||||
function sideMenuStandardLinks() {
|
||||
function sideMenuLinks() {
|
||||
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('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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user