| 
 | ||||||||||
|  | Shopping cart software Solutions for online shops and malls | |||||||||
|  |  |  | ||||||||
| X-Cart Home |  FAQ |  Forum rules |  Calendar |  User manuals |  Login | 
|  | 
| Parsing PHP in the templates | |||
|  |  | ||
|  | Thread Tools | Search this Thread | 
| 
			 
			#1  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|  Parsing PHP in the templates Is it possible to parse PHP code in the templates? I don't mean just using includes. I realize you can do that with Smarty. I mean something that would require 5-10 lines of code to be parsed. 
				__________________ X-Cart: 4.0.18 Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2 | |||||||||
| 
			 
			#2  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   
				__________________ 4.0.15 Linux | |||||||
| 
			 
			#3  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|   Thanks mocara. It's been a while since I messed with Smarty. The {php} tag works pretty well. I'll have to have a deeper look through the manual. 
				__________________ X-Cart: 4.0.18 Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2 | |||||||||
| 
			 
			#4  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|   Code: 
 Full list of smarty variables/arrays without debug console, yay!  also you can use $GLOBALS to grab any other data you may need.   Another tip is open up some files in templates_c/ and you can see how smarty converts it all into php anyway. | |||||||||
|  | |||
| 
X-Cart forums © 2001-2020
 | |||