public function __call($methodName, $args) { if (preg_match('/^([a-zA-Z0-9_-]+)Action$/', $methodName, $regs)) { $this->pageId = $this->getPageId(); if (!$this->getPage($this->pageId)) { throw new Am_Exception_InternalError("Could not find page[{$id}]"); } return $this->renderPage($this->getActivePage()); } //if ($this->) return parent::__call($methodName, $args); }