Ensign Posted July 9, 2010 Share Posted July 9, 2010 I have a question regrading Smarty: I have a table.php page. <?php if ($showtable) { table1(what codes do I use?) } else{ table2(what codes do I use?) } include(dirname(__FILE__).'/footer.php'); ?> Then I have a table.tpl page in themes folder which contents table1 and table2. My question is how can I tell the table.php to get the table1 from table1 and table2 from table2 from table.tpl since both tables are on the same page? I mean what codes do I use on the table.php page?Any help will be great. Thanks. Link to comment Share on other sites More sharing options...
Star Posted July 10, 2010 Share Posted July 10, 2010 You can read this manual and learn it yourself. http://www.lacorona.com.mx/mario/smarty/Smarty-2.6.14-docs-en.pdfIt is not just getting some codes here and there and will make your script works. It involved a lot more than you think. I learned Smarty from reading this manual first. I am a worst programmer, my way may not be the best, but that was how I learned the Smarty. Good luck to you. Link to comment Share on other sites More sharing options...
Star Posted July 11, 2010 Share Posted July 11, 2010 I just sent you PM. Link to comment Share on other sites More sharing options...
Recommended Posts