i am displaying modules and their parts according to modules on the same pahe.
-- $module=$this->Module->find('all', array('conditions'=> array('isactive'=>'0')));
$this->set('module',$module);
i need another find condition so i can compare that part is related to module and display accordingly :
$order = 'index ASC';
$conditions=array('moduleid'=>$module,'isactive'=>'1');
$modulepart=$this->Modulepart->find('all',array('order',$order,'conditions'=>array($conditions)));
$this->set ('modulepart',$modulepart);
i am getting this error so:
Notice (8): Array to string conversion
i understand that my $module is storing in array format ,so how do i strore in string format ???
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment