function initializeTemplate() { $l = $this->api->locate('addons', __NAMESPACE__, 'location'); $addon_location = $this->api->locate('addons', __NAMESPACE__); $this->api->pathfinder->addLocation($addon_location, array('js' => 'js', 'css' => 'css', 'template' => 'templates'))->setParent($l); parent::initializeTemplate(); }
function initializeTemplate() { $this_class = get_class($this); $namespace_class = explode("\\", $this_class); $this->namespace = $namespace_class[0]; preg_match_all("/(.*)_(.*)\$/", $namespace_class[1], $matches); $this->component_type = $matches[2][0]; // Add Location for templates in Class Extending / Inherited Component Base $l = $this->api->locate('addons', $this->namespace, 'location'); $this->api->pathfinder->addLocation($this->api->locate('addons', $this->namespace), array('template' => 'templates', 'css' => 'templates/css', 'js' => 'templates/js'))->setParent($l); parent::initializeTemplate(); }
function initializeTemplate($template_spot = null, $template_branch = null) { foreach ($this->_options as $attr => &$value) { if ($value === 'true') { $value = true; } if ($value === 'false') { $value = false; } if ($value === '1') { $value = 1; } if ($value === '0') { $value = 0; } if ($value === 'null') { $value = null; } } $this->options = $this->_options + $this->options; parent::initializeTemplate($template_spot, $template_branch); }
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); }