public function __construct($model) { parent::__construct($model); $this->request($this->model->get_request_params()); }
/** * Create an instance of Zend_Mail, set the default transport and the sender * info. * * @return Zend_Mail */ protected function createMail() { if (self::$_mailTransportSet === false) { $config = fz_config_get('email'); $config['name'] = 'filez'; $transport = new Zend_Mail_Transport_Smtp($config['host'], $config); Zend_Mail::setDefaultTransport($transport); self::$_mailTransportSet = true; } $mail = new Zend_Mail('utf-8'); $mail->setFrom($config['from_email'], $config['from_name']); return $mail; }
public function __construct($model, $path_to_view) { $this->_path_to_view = $path_to_view; parent::__construct($model); }