Hello -- and thank you for being willing to help.

I'm new to PHP and CakePHP, but making progress. I have MVC setup for a 
table called topics. In the controller for public function index I have:

$this->set('topics', $this->paginate());

That returns 15,000 records! I just want to see those of a certain type (in 
my case the sql would be WHERE type = 'BK').

What would I do next? I assume this has something to do with learning about 
parameters. Would I pass a parameter to the index page by doing something 
like:

 http://myapp/topics/index/type:PR  -- where my type of topic is identified 
by 'BK' (i.e., type equals book)? 

If so, then what would this change the appearance of $this->set('topics', 
$this->paginate());?

Thank you -- for either showing me how or telling me where to go in the 
documentation.

Kevin

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to