|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
paresh Smarty n00b
Joined: 04 Nov 2005 Posts: 2
|
Posted: Fri Nov 04, 2005 6:55 am Post subject: Smarty and XML |
|
|
Hello Smarty Users,
I am not sure if anyone i using smarty templates to store xml. We are doing an application that requires sending xml responses that are to be generated dynamically. I am using smarty for the purpose that xml can be viewed as tree structure as well as data substituion remains easy. Moreover my PHP code which earlier had lot of xml tags hardcoded can now be free of those. Just use the Fetch method and you are done!!!
Paresh
Last edited by paresh on Wed May 05, 2010 11:13 pm; edited 1 time in total |
|
Back to top |
|
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Mon Jan 19, 2009 5:08 pm Post subject: You can control your output |
|
|
Look at http://www.php-editors.com/smarty_manual/tips.wap.html and similar posts.
You can see see that, you can produce any types of documents like html, xml, wml, and even javascripts or anything.
The thing is that, only you need to have your variables defined, assigned and used properly in the tempates.
Few friendly remainders:
* Use document type headers properly.
* Use special things like, { and } in a correct pattern.
* Loop throguh the variables and print them out. |
|
Back to top |
|
kaas Smarty Rookie
Joined: 05 Feb 2009 Posts: 13
|
Posted: Tue May 19, 2009 11:16 am Post subject: input select and smarty source |
|
|
Hello,
I want to complete a input select list with an Xml source.
who can help me please ? |
|
Back to top |
|
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Fri Jun 05, 2009 3:32 pm Post subject: Use PHP XML parser |
|
|
You can use PHP XML parsers. Smarty has nothing to do on this.
Rather, you can use Smarty produce XML files |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|