public function init() { parent::init(); if ($this->loadAssets) { NewsletterAssetBundle::register($this->getView()); } }
public function init() { parent::init(); if (isset($this->slug)) { // Find Model $model = WidgetService::findBySlug($this->slug); if (isset($model) && $model->active) { $template = $model->template; $this->data = $model->data; if (isset($template) && !$this->ignoreAdminTemplate) { $this->templateDir = $template->viewPath; $this->template = $template->frontendView; } } } }
public function init() { parent::init(); // Do init tasks }
public function init() { parent::init(); }
public function init() { parent::init(); // Required in case content is generated manually ob_start(); }