Davor, please show how you have defined the Add model! You have to provide more information than just "it doesn't work"! We can't help you if we can't see anything or have experienced the same as you! And you do say that it works in one controller but not in the Add controller - so what is the difference between the to cases? Enjoy, John
On Jun 19, 8:21 pm, Davor Ilic <webfa...@gmail.com> wrote: > i do not understand why the find method is not exist... > i also use this in another controller and it works but now in the > addscontroller it don´t work... > > 2010/6/19 Davor Ilic <webfa...@gmail.com> > > > > > <?php > > > class AddsController extends AppController { > > > var $name = 'Adds'; > > > var $view = 'Theme'; > > > var $theme = 'wf'; > > > function admin_apps() { > > > $this->add_subNavigation(); > > > $this->set('adds', $this->Add->find('all')); > > > } > > > function admin_widgets() { > > > } > > > function admin_plugins() { > > > } > > > function admin_add_apps() { > > > $this->add_subNavigation(); > > > } > > > function admin_add_widgets() { > > > } > > > function admin_add_plugins() { > > > } > > > private function add_subNavigation() { > > > $this->set('ui_navilist', > > > array( > > > 'List Apps'=>array( > > > 'controller'=>'adds', > > > 'action'=>'apps' > > > ), > > > 'Add Apps'=>array( > > > 'controller'=>'adds', > > > 'action'=>'add_apps' > > > ) > > > ) > > > ); > > > } > > > } > > > ?> > > > 2010/6/19 John Andersen <j.andersen...@gmail.com> > > > Please show you Add model code! How is the class defined? > >> Enjoy, > >> John > > >> On Jun 19, 6:07 am, Davor Ilic <webfa...@gmail.com> wrote: > >> > Do anybody know why this issue is showing??? > > >> > what i´ve done is only to add in my method : > > >> > $this->set('adds', $this->Add->find('all')); > > >> > i also have a model which name is add.php > > >> > i also use find in other methods but this is is return headache only [?] > > >> > 33C.gif > >> > < 1KViewDownload > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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<cake-php%2bunsubscr...@googlegroups.com>For > >> more options, visit this group at > >>http://groups.google.com/group/cake-php?hl=en 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