RE: Re[6]: AW: [SMARTY] Paging

From: Date: Thu, 12 Dec 2002 14:35:27 +0000
Subject: RE: Re[6]: AW: [SMARTY] Paging
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6769@lists.php.net to get a copy of this message
> YOu should read a little the page Andrei has written about > "Why use Smarty". He gives some sound sample of what real > layout / code separation is. And giving a SQL query as a > parameter in the template is definitely a very good sample of > what separation is NOT :) i do understand separation of program logic and presentation logic. however, i'm still not convinced that this is a bad way for pagination to work. in theory, for return_paged_results, the query is set by the programmer, and the output is managed by the designer. i would pass the result set from the queries directly - but the actual queries are not determined until the plugin is called and depends on parameters set by the designer (such as number of records shown per page). if passing the query is not ideal, then can anyone suggest a better way to do this?

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