X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Variable help... (https://forum.x-cart.com/showthread.php?t=2002)

maniac 03-25-2003 05:50 AM

Variable help...
 
OK,

I succesfully edited home.php so that I can include a php file which has a bunch of variables I need. I also defined a variable in home.php. Now, I want to echo those variables on the display pages.

I called the variable I defined in home.php on the home.tpl template and it showed up on my page, I used the following syntax {$variableName}.

But, when I try to call any of the variables I define in the included files, using the same syntax, I get nothing.

Is there another way to call the variables and echo them in the template files?

Thanks

funkydunk 03-25-2003 06:50 AM

need to do:

Code:

smarty->assign("variableintemplate",$phpvariable);
within your home.php script

maniac 03-29-2003 09:53 AM

Thanks!
 
got it!

trying some new things now...


All times are GMT -8. The time now is 06:42 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.