--
Tilen Majerle
2010/10/25 Briko03 <nathanrlarkin@gmail.com>
I have a controller that does a find all to get all the results from
our database:
<?php class ResultsController extends AppController {
var $name = 'Results';
function index() {
$this->set('results',$this->Result->find('all'));
$this->set('results', $this->paginate('Result')); }}
I want to build a function that can get parameter(s) from the url to
build the query instead of returning 'all'....
Can anyone help me with this?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment