hello, am new to cakephp.
Would really appreciate if anyone could help me out.

Am just trying to call a model function from controller, and getting
the above error.


My model code is,

class Word extends AppModel
{
var $useTable = false;

function setDate($date1, $date2) {

// some code to get the required date out of it

return $date;

}

Controller code is,

class WordsController extends AppController
{

var $name = 'Words';

function xx(){

$date = $this->Word->setDate();

// code doing some math over the fetched date.

}
}

there is no view file, and the model file is named word.php and
controller file is named words.php

So, could anyone tell me, why am getting the error for the line, $date
= $this->Word->setDate();

Thanks

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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to