it seems I missed something important about arrays in PHP.
What’s wrong with this:
var $condition = array('Status.name = ' => 'PUBLISHED');
var $paginate = array('conditions' => $condition );
this works just fine:
var $paginate = array('conditions' => array('Status.name = ' => 'PUBLISHED' ));
Why the
varkeyword? Normally you wouldn’t need this – unless these are fields on an object?. If so, you will need to reference them using $this. One of the following examples should work for you:or
Without seeing more of the code, it is hard for me to say with certainty which one applies to you and/or if this will solve your problem. Hopefully it’s pointed you in the right direction.