Jump to content

How to call this Function in TPL


Recommended Posts

Hey i need this call in my tpl how i can do that ?

<?php


$sell="http://www.site.com/sellitems.html";
if(!$urlZ=$sell )
{
    echo $this->_tpl_vars['myobj']->getTpl('general','header.tpl');
}
else
{
echo $this->_tpl_vars['myobj']->getTpl('general','header1.tpl');
} ?>

its read the url from the address bar then its pass the value any one write proper code for me for tpl that work , i will very gratefull to you ,

 

server code unable to write here i am upload the full code image here :

http://postimg.org/image/i7ky73pqv/

waiting for the reply  ,

 

Regards

Edited by ahmed1136 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...