private function __initialize(Request $request, Response $response) { // instance variables $this->request = $request; $this->response = $response; $this->execution_chain = new ExecutionChain($this, $this->context); // do we need to register and start a session? $this->__register_session(); $this->controller = $this->request->parameter('controller'); // create the template now. $this->template = ActionView::load($this->context, $this); // assign basic template variables. $this->template->assign('__controller', $this->controller); $this->template->assign('__action', $this->request->parameter('action')); return true; }