
August 27th, 2009, 10:52 AM
|
|
Contributing User
|
|
Join Date: Aug 2008
Posts: 39
Time spent in forums: 19 h 20 m 11 sec
Reputation Power: 2
|
|
|
Ajax - Loading External Content -- PHP/Smarty with Ajax
Hey all.
I am trying to do the following: http://res.nodstrum.com/ajaxPHPContent/index.html
If you click a link on top of the page, it gives new information back to the user.
My main problem is that I am using the smarty template system and I am unsure of how to do this with Smarty.
This is the tutorial I am using: http://nodstrum.com/2007/02/27/ajaxcontentload/
At the PHP page is where things get interesting as I am not echoing out content in PHP, but in Smarty. So, what I need to do is have the case statement run the query that needs to be run and then take those results and send them to the smarty tpl file. I guess in smarty file, I will just write a IF conditional based on the different cases so as to know what static text should display.
Does this methodology/logic sound correct?
Thanks!
|