user input via form - which strategy?

From: Date: Sun, 04 Aug 2002 17:21:00 +0000
Subject: user input via form - which strategy?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5581@lists.php.net to get a copy of this message
Hello, During the last 4 Weeks I developed a small CMS for a business site. The CMS works like a charm. :) When I integrated Smarty for the front end I was not totally aware about the consequences and so I probably made a big mistake yet I have a week or so to go and with a little help from this list I might find my way.... This is what the template has to do: The template has to show a menu which changes accordingly to the languageset. And it shows the content accordingly to the chosen article. My setup looks like this: I have just one large index.php file that handles all the logic and chacks user input variables. The template is devided into 2 files for header and content. -First it gets all of the available menus from my database. -Then it checks which article the visitor is calling and makes the right queries. I only fetches the requested (via post variables) article from the database or if the user wants all articleheaders displayed (request via post variables) it gets those informations. -The template does now show all the data as is with loops for the menu and if clauses to handle the layout differences between article and articleheaders. Without caching enabled this works like a charm and is even fast but I wonder if this can be cached at all? I want to cache the site on the whole but I don't understand how it is possible?? John Waldorff

« previous php.smarty.general (#5581) next »