requestAction() is bad! Implement recursive relationship between
models and use the find() with contain and conditions!

On Jul 5, 2:38 pm, Ahmet Kemal <ahmetkemala...@gmail.com> wrote:
> Hello,
>
> I have an element that grabs data from mysql. Here is my working code:
>
>     $this->requestAction('posts/index/sort:id/direction:desc');
>
> I want to grab only posts between id 1 and 6. How can I run that query
> via requestAction? Some of scripts that I have tried are below. None
> is working:
>
>     $this->requestAction('posts/index/sort:id/direction:desc',
> array('id between ? and ?' => array('1,6')));
> or
>     $this->requestAction('posts/index/sort:id/between:1,6/
> direction:desc');
>
> You may see my project athttp://bake.yemeklog.com/I want this code
> for third column (Last 30 days faves) All columns are elements.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to