Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Variable help...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-25-2003, 05:50 AM
 
maniac maniac is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 97
 

Default 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
Reply With Quote
  #2  
Old 03-25-2003, 06:50 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

need to do:

Code:
smarty->assign("variableintemplate",$phpvariable);
within your home.php script
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 03-29-2003, 09:53 AM
 
maniac maniac is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 97
 

Default Thanks!

got it!

trying some new things now...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:17 AM.

   

 
X-Cart forums © 2001-2020