callTagCompiler example

$this->has_output = false;
        // log tag/attributes         if (isset($this->smarty->get_used_tags) && $this->smarty->get_used_tags) {
            $this->template->used_tags[] = array($tag$args);
        }
        // check nocache option flag         if (in_array("'nocache'", $args) || in_array(array('nocache' => 'true')$args)
                || in_array(array('nocache' => '"true"')$args) || in_array(array('nocache' => "'true'")$args)) {
            $this->tag_nocache = true;
        }
        // compile the smarty tag (required compile classes to compile the tag are autoloaded)         if (($_output = $this->callTagCompiler($tag$args$parameter)) === false) {
            if (isset($this->smarty->template_functions[$tag])) {
                // template defined by {template} tag                 $args['_attr']['name'] = "'" . $tag . "'";
                $_output = $this->callTagCompiler('call', $args$parameter);
            }
        }
        if ($_output !== false) {
            if ($_output !== true) {
                // did we get compiled code                 if ($this->has_code) {
                    // Does it create output?
Home | Imprint | This part of the site doesn't use cookies.