public function init()
 {
     parent::init();
     if ($this->loadAssets) {
         NewsletterAssetBundle::register($this->getView());
     }
 }
Beispiel #2
0
 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
 }
Beispiel #4
0
 public function init()
 {
     parent::init();
 }
Beispiel #5
0
 public function init()
 {
     parent::init();
     // Required in case content is generated manually
     ob_start();
 }