> I asked on the channel of cakephp, but peoples are a bit rough on n00b
> there... :S
Thanks mate, nice things you say about us. iirc, me and some others
have done quite some effort to help you there.
anyway, like i told you on irc, i would use a link like
articles/index/<categoriename> , that way you can leave the view code
for the index view like it is, but pass only the articles of a certain
category, by making the index() function something like this:
function index($category = null)
{
$this->pageTitle = 'Articles';
$conditions = null;
$fields = null;
$order = null;
$limit = null;
$page = null;
$recursive = null;
$more = false;
if($category) $conditions="category = ".$category;
$articles =
$this->Article->findAll($conditions,$fields,$order,$limit,$page,$recursive);
$this->set('articles',$articles);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---