$this->load('Objeckt); instead of App::uses()
Em terça-feira, 6 de março de 2012 08h14min42s UTC-3, heohni escreveu:
-- Em terça-feira, 6 de março de 2012 08h14min42s UTC-3, heohni escreveu:
Hi,class DetailsController extends AppController{
var $name = 'Detail';
public function index($id){
if($id){
$results = $this->Detail->find('first', $conditions['Gesamtobjekt']);
App::uses('Objekt', 'Model');
$results = $this->Objekt->translateStrings($results); debug($results);
}
}
}What do I have to do, to get the $this->Objekt->translateStrings working?
Right niow, I only getFatal error: Call to a member function translateStrings()Message.What do I miss?I tried to get an info from the book, but I only find how to write the App::uses but I didn't find any further note..Please advice!
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment