/** * A render function that will render the specified view inside of the main member "profile" view. (Except * on AJAX/view response types.) * * @param string $view The name of the view to render. * @return void */ public function renderProfile($view = "") { if (!in_array($this->responseType, array(RESPONSE_TYPE_VIEW, RESPONSE_TYPE_AJAX))) { $this->data("view", $view); parent::render("member/profile"); } else { parent::render($view); } }
/** * Rather than just rendering the view passed to this function, we need to render the admin "wrapper" view * and include the specified view within that (except on AJAX/view response types.) * * @param string $view The name of the view to render. * @return void */ public function render($view = "") { $this->data("menu", $this->menu); $this->data("defaultMenu", $this->defaultMenu); if (!in_array($this->responseType, array(RESPONSE_TYPE_VIEW, RESPONSE_TYPE_AJAX))) { $this->data("view", $view); parent::render("admin/index"); } else { parent::render($view); } }