public function getTemplatePath($template)
    {
        $reportname = preg_replace("/.xml/", "", $this->xmloutfile . '_' . $template);

        // Some calling frameworks require output to be returned
        // for rendering inside web pages .. in this case
        // return_output_to_caller will be set to true

        if (preg_match("/$reportname/", ReporticoUtility::findBestLocationInIncludePath("templates/" . $this->getTheme() . $reportname))) {
            $template = $reportname;
        }

        if (preg_match("/$reportname/", ReporticoUtility::findBestLocationInIncludePath("templates/" . $reportname))) {
            $template = $reportname;
        } else if ($this->user_template) {
            $template = $this->user_template . "_$template";
        }

        return $template;
        //return $this->getTheme() . '/' . $template;
    }
public function getTemplatePath($template)
    {
        $reportname = preg_replace("/.xml/", "", $this->xmloutfile . '_' . $template);

        // Some calling frameworks require output to be returned
        // for rendering inside web pages .. in this case
        // return_output_to_caller will be set to true

        if (preg_match("/$reportname/", ReporticoUtility::findBestLocationInIncludePath("templates/" . $this->getTheme() . $reportname))) {
            $template = $reportname;
        }

        if (preg_match("/$reportname/", ReporticoUtility::findBestLocationInIncludePath("templates/" . $reportname))) {
            $template = $reportname;
        } else if ($this->user_template) {
            $template = $this->user_template . "_$template";
        }

        return $template;
        //return $this->getTheme() . '/' . $template;
    }
public function getTemplatePath ( $ template ) { $ reportname = preg_replace ( "/.xml/" , "" , $ this -> xmloutfile . '_' . $ template ) ; // Some calling frameworks require output to be returned // for rendering inside web pages .. in this case // return_output_to_caller will be set to true if ( preg_match ( "/$reportname/" , ReporticoUtility :: findBestLocationInIncludePath ( "templates/" . $ this -> getTheme ( ) . $ reportname ) ) ) { $ template = $ reportname ; } if ( preg_match ( "/$reportname/" , ReporticoUtility :: findBestLocationInIncludePath ( "templates/" . $ reportname ) ) ) { $ template = $ reportname ; } else if ( $ this -> user_template ) { $ template = $ this -> user_template . "_$template" ; } return $ template ; //return $this->getTheme() . '/' . $template; }
Get the path to the template

@param $template stricng name of template foile (eg. prepare.tpl)
@return string Path to the template including template / custom file.
Get the path to the template