mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-25 13:48:03 -05:00
* Add Minz_View::_path method (replace change_view) The `_path` method is more powerful since it allows to choose the file extension. It is also Minz_Request-agnostic, which is useful to reuse the Minz_View class in other places. `change_view` is now deprecated and a warning is logged if we use it. * Provide a Minz_Mailer to send emails It uses PHPMailer under the hood and only supports PHP >= 5.5
39 lines
842 B
PHP
39 lines
842 B
PHP
<?php
|
|
/**
|
|
* MINZ - Copyright 2011 Marien Fressinaud
|
|
* Sous licence AGPL3 <http://www.gnu.org/licenses/>
|
|
*/
|
|
|
|
/**
|
|
* La classe ActionController représente le contrôleur de l'application
|
|
*/
|
|
class Minz_ActionController {
|
|
protected $view;
|
|
|
|
/**
|
|
* Constructeur
|
|
*/
|
|
public function __construct () {
|
|
$this->view = new Minz_View();
|
|
$view_path = Minz_Request::controllerName() . '/' . Minz_Request::actionName() . '.phtml';
|
|
$this->view->_path($view_path);
|
|
$this->view->attributeParams ();
|
|
}
|
|
|
|
/**
|
|
* Getteur
|
|
*/
|
|
public function view () {
|
|
return $this->view;
|
|
}
|
|
|
|
/**
|
|
* Méthodes à redéfinir (ou non) par héritage
|
|
* firstAction est la première méthode exécutée par le Dispatcher
|
|
* lastAction est la dernière
|
|
*/
|
|
public function init () { }
|
|
public function firstAction () { }
|
|
public function lastAction () { }
|
|
}
|