Re: [SMARTY] Re: [SMARTY-DEV] Simple math

From: Date: Fri, 20 Jun 2003 15:15:20 +0000
Subject: Re: [SMARTY] Re: [SMARTY-DEV] Simple math
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9745@lists.php.net to get a copy of this message
{math assign="pages" equation="n/4" n=$items|@count} but please, please keep this kind of logic out of the template.
First, this time I can't. Second, it's template designer's decision on how many items to show on page.
In case you fetch data from the database, then somply limit the query accordingly and pass only the selected data to the teplate. Page splitting will be then a joke and template designers will not have to think about it at all ;) best regards, alex kulikov -- .::....::.:...::...:..:.:::..:..::..::.::..:.:. Kulikov Alexey - E-Com Development Consultant +43 699 1 9228792 | alex@inses.biz

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