Php variable for site url not smarty

Discussion in 'aMember Pro v.3' started by youjoomla, Jul 7, 2012.

  1. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    I see smarty var for site url as { $config.root_surl} but in template I need to do some str_replace


    so I need the actual php var to be used as

    PHP:
    {php}
     
    $string str_replace('amember','',$config.root_surl);
    {/
    php}
    how would I do this in header.html ?
  2. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    fund it $this->get_template_vars('config')

Share This Page