hi guys!
i'm just new to symfony. i can already list data from my database but
now needs to be paginated.
hope you can help me! thanks!!!
my routing.yml
list_laptops_by_popularity:
url: /laptop/list-by-popularity
param: { module: laptop, action: listByPopularity }
class: sfDoctrineRoute
options: { model: Laptop, type: object }
this is from my action:
public function executeListByPopularity(sfWebRequest $request)
{
$this->laptops = Doctrine::getTable('Laptops')-
>getPopularLaptops();
}
this is for my template(output)
<?php foreach ( $laptops as $k ) {
echo $k->brand;
} ?>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en