public function Run() { if (layout::Ret()->Ready() and $this->output) { $this->output .= layout::Ret()->Display(); error::Ret()->Warn("Output found from action - " . stack::Ret()->GetAction() . " - and layout - " . layout::Ret()->GetTemplate()); } elseif (layout::Ret()->Ready()) { $this->output = layout::Ret()->Display(); } return $this->output; }
/** * This public function allows your users to go to * http://localhost/app/<controller>/<function>/ via the web browser. Use * protected functions to prevent users from accessing. * */ public function index() { layout::Ret()->SetTemplate('views/index/index.smarty'); layout::Ret()->Define('title', 'BreathePHP | Home'); }