initializeTemplate() публичный Метод

Called automatically during init for template initalization.
public initializeTemplate ( string $template_spot = null, string | array $template_branch = null ) : AbstractView
$template_spot string Where object's output goes
$template_branch string | array Where objects gets it's template
Результат AbstractView $this
Пример #1
0
 function initializeTemplate()
 {
     $l = $this->api->locate('addons', __NAMESPACE__, 'location');
     $lp = $this->api->locate('addons', __NAMESPACE__);
     $this->api->addLocation($lp, array('template' => 'templates/default'))->setParent($l);
     return parent::initializeTemplate();
 }
Пример #2
0
 function initializeTemplate($tag, $template)
 {
     $template = $this->form_template ? $this->form_template : $template;
     $tag = $this->form_tag ? $this->form_tag : $tag;
     return parent::initializeTemplate($tag, $template);
 }