Hello. You can create own Helpers and used needed queries to model through them
http://book.cakephp.org/view/101/Creating-Helpers class MyHelper { public function myQuery() { App::import('Model', 'MyModel'); $this->Menu = new MyModel; $this->data = $this->MyModel->find('all'); // create output.... return $output; } } 2011/1/21 opike <[email protected]>: > I want to custom populate some drop down boxes in an add view and I > was wondering what is considered best practice. Can I just grab the > database connection as indicated in this thread: > http://ask.cakephp.org/questions/view/how_can_i_access_the_mysql_database_connection_from_one_of_my_controllers > > and start issuing queries or is there some other way that I should > work through the model? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
