|  | 
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  Smarty and Conditional Templating~? 
			
			So I've been reading through Smarty documentation, since Mysidia is built using that templating system. The documentation suggests we can do things such as the following in our template (.tpl) files: PHP Code: 
			My complaint with the sidebar usage is that... well... I want more freedom than that? I want to place it in anywhere in my template (.tpl) and not have to mess with deep Mysidia files every time I want to place my user's name or currency amount. If I want to display any variable on this site, I want to make full use of the Smarty templating. I think some considerations for the next version of Mysidia should be made in regards to variables accessible to us from any page, any where, any time. In short - Where can I/should I/do I position Registry::get("mysidia"); to make its usage global? How do I go about shortening {$mysidia->user->username} to {$username}, {$mysidia->user->isloggedin} to {$logged_in}, and {$mysidia->user->money} {$mysidia->settings->cost} to {$currency}?  ~ <3 Last edited by Kyttias; 06-17-2014 at 03:26 PM. | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Smarty Tips: Things you can do with Templates | Kyttias | Tutorials and Tips | 5 | 04-03-2015 10:53 AM | 
| Assigning array to smarty variables | IntoRain | Questions and Supports | 3 | 06-03-2014 02:06 PM | 
| Smarty errors and WAMPP | Kesstryl | Questions and Supports | 15 | 01-29-2014 09:07 PM | 
| Problem: smarty class 1.3.4 | draugluin | Questions and Supports | 8 | 11-15-2013 02:29 AM | 
| What's New? | What's Hot? | What's Popular? |