Skip to content
Snippets Groups Projects

Premier chapitre

Merged Ghost User requested to merge (removed):premier-chapitre into premier-chapitre
Compare and
+ 73
26
Preferences
Compare changes
Files
@@ -39,9 +39,12 @@ class Admin_PremierChapitreController extends Zend_Controller_Action {
public function preDispatch() {
$no_front_actions = array();
if (!$this->active && $action != 'inactive') {
$request->setActionName('inactive');
$request->setDispatched(false); //force le rechargement du controller avec la nouvelle action
}
// Desactiver le view renderer normal
if (in_array($this->_request->getParam("action"),$no_front_actions)) {
else if (in_array($this->_request->getParam("action"),$no_front_actions)) {
$viewRenderer = $this->getHelper('ViewRenderer');
$viewRenderer->setNoRender();
}
@@ -49,9 +52,12 @@ class Admin_PremierChapitreController extends Zend_Controller_Action {
public function indexAction() {
$this->view->titre .= ' :: Index des fonctions';
}
function inactiveAction() {
$this->render('inactive');
}
function majRefAction() {
$data = false;
$pc_ws = new Class_WebService_PremierChapitre();
@@ -90,7 +96,6 @@ class Admin_PremierChapitreController extends Zend_Controller_Action {
$this->view->contenu = '<pre>'.$contenu.'</pre>';
$this->view->contenu .= "<br/><a href='/admin/premier-chapitre/'>Retour à l'index du service Premier-chapitre</a>";
$this->view->titre .= ' :: Mise à jour de la base';
$this->renderScript('premier-chapitre/index.phtml');
}
function linkNoticesAction() {