Posted By

blueocto on 07/01/11


Tagged

Prestashop


Versions (?)

Prestashop : Base url


 / Published in: Smarty
 

If you are developing a website and will be moving from one URL/Domain to another, it easier to have href="thedomain.com/whateverthepage.php"

So to do this in a Prestashop theme use the following code.

  1. {$base_dir}
  2.  
  3. Example:
  4.  
  5. <a href="{$base_dir}content/6-about-us">About Us</span></a>

Report this snippet  

You need to login to post a comment.