local/modules/Klikandpay/Klikandpay.php
/**
     * Render the given template, and returns the result as a string.
     *
     * @param $templateName the complete template name, with extension
     * @param array $args        the template arguments
     * @param null  $templateDir
     *
     * @return string
     */
Render the given template, and returns the result as a string.
@param $templateName the complete template name, with extension
@param array $args        the template arguments
@param null  $templateDir

@return string
Render the given template and returns the result as a string . @param $templateName the complete template name with extension @param array $args the template arguments @param null $templateDir @return string
protected function renderRaw($templateName, $args = array(), $templateDir = null)
    {
        $templateName .= '.html';
        $session = $this->getRequest()->getSession();
        $args = array_merge($args, array(
                'locale'               => $session->getLang()->getLocale(),
                'lang_code'            => $session->getLang()->getCode(),
                'lang_id'              => $session->getLang()->getId(),
                'current_url'          => $this->getRequest()->getUri()
            ));
        $data = $this->getParser($templateDir)->render($templateName, $args);
        return $data;
    }
protected function renderRaw ( $ templateName , $ args = array ( ) , $ templateDir = null ) { $ templateName .= '.html' ; $ session = $ this -> getRequest ( ) -> getSession ( ) ; $ args = array_merge ( $ args , array ( 'locale' => $ session -> getLang ( ) -> getLocale ( ) , 'lang_code' => $ session -> getLang ( ) -> getCode ( ) , 'lang_id' => $ session -> getLang ( ) -> getId ( ) , 'current_url' => $ this -> getRequest ( ) -> getUri ( ) ) ) ; $ data = $ this -> getParser ( $ templateDir ) -> render ( $ templateName , $ args ) ; return $ data ; }
Render the given template, and returns the result as a string.
Render the given template and returns the result as a string .
// Add the template standard extension // Prepare common template variables // Render the template.