Re: frustrating redirect issue

2014-11-12 Thread 'Benjamin Chéré' via CakePHP
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

Re: Validate if not between

2013-11-19 Thread Benjamin Chéré
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

Re: mysql join query gives too much results, twice.

2013-10-16 Thread Benjamin Chéré
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