Re: RequestAction with pagination ?

2008-03-09 Thread Lisa B
> I get undefined variable $paginate... I dunno if this helps but the var name in the view is $paginator (not $paginate) like in sort('id');?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: How to search a hasAndBelongsToMany related table?

2008-03-09 Thread Lisa B
maybe like: this->Users->TeamsUser->findAll(array('Team.league_id' => 1)); as in: http://www.cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=1&tb=1&pb=1 --~--~-~--~~~---~--~~ You received this message because you are su

Re: override foreign key name with HABTM

2008-03-07 Thread Lisa B
Thank you that worked! I really appreciate that and thanks for enlightening me about 'with'. I have a follow up question pretty please: now I'm having the same problem with trying to find all terms in a given context. I'm trying to use 'with' but it doesn't seem to behave or I'm missing some

Re: Propagating query string with paginator?

2008-03-06 Thread Lisa B
you can add stuff to the url of sort and nex/prev links with paginator, it's in the api, so a sort table header maybe something like: $paginator->sort('no','Media.no',array('url'=>array($term))); hope that helps.. --~--~-~--~~~---~--~~ You received this message b

override foreign key name with HABTM

2008-03-06 Thread Lisa B
In my project I can't use the default 'id' name for primary key fields, I have to use 'no'. I have to change a cake I already baked from using 'no' to 'id' everywhere. I hadn't customized it much and I could easily change the database and everywhere I could see in the views and models, and most