All pastes #907748 Raw Edit

Anonymous

public php v1 · immutable
·published 2008-02-17 21:25 UTC
rendered paste body
/*The following gives: Fatal error: Call to a member function setSlot() on a non-object in... on line 25Why?*/public function setupHtml(AgaviRequestDataHolder $rd, $layoutName = null)	{		if($layoutName === null && $this->getContainer()->getParameter('is_slot', false)) {			$layoutName = 'slot';		}				$this->loadLayout($layoutName);		// THIS is the line 25.		// Set up the admin menu on the top of the page IF the user has authenticated.		if($this->context->getUser()->isAuthenticated() && !$this->getContainer()->getParameter('is_slot')) {			$menuCon = $this->createSlotContainer('Admin', 'AdminTopMenu');			$this->getLayer('decorator')->setSlot('admin_top_menu', $menuCon);		}	}