コード例 #1
0
 public function __construct($model)
 {
     parent::__construct($model);
     $this->request($this->model->get_request_params());
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: nahuelange/FileZ
 /**
  * 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;
 }
コード例 #3
0
 public function __construct($model, $path_to_view)
 {
     $this->_path_to_view = $path_to_view;
     parent::__construct($model);
 }