I have a problem with getmailer(), i always have this error :
- Code: Select all
Notice: Undefined index: class in C:\wamp\bin\php\php5.2.6\PEAR\symfony\util\sfContext.class.php on line 257
Fatal error: Class name must be a valid object or a string in C:\wamp\bin\php\php5.2.6\PEAR\symfony\util\sfContext.class.php on line 257
My code is very simply :
- Code: Select all
class homeActions extends sfActions
{
/**
* Executes index action
*
* @param sfRequest $request A request object
*/
public function executeIndex(sfWebRequest $request)
{
$mailer = $this->getMailer();
}
}
Someone hade a idea of the mistake ?
Thank you for help.
