Try to debug the redirect in the AppController::beforeFilter()
: http://stackoverflow.com/questions/2404977/debugging-a-browser-redirect-loop
Le mardi 11 novembre 2014 12:43:17 UTC+1, Δημήτρης Κρεμμύδας a écrit :
>
> I have made this simple view-less action on a controller
>
> function lala($i
Hello,
I think it's not a validation rule, your query is a search condition
$this->Publisher->find ('all', array(
'fields' => array('pub_name', 'country', 'pub_city', 'estd'),
'conditions' => array('OR'=>array('YEAR(estd) <' => 2010, 'YEAR(estd) >' =>
2013))
));
Le lundi 18 novembre 2013 23
Hi,
To have the categories of a product, I would search from Product model.
If recursive = 1 the associated categories would be in the result.
$this->Category->Product->find('first', array(
'conditions' => array('Product.id'=>$pid)
));
Or you can use Containable behavior to control what you wan