Bläddra i källkod

Adaptations refactoring/traduction backend/controllers/CommuniquerController > CommunicateController

refactoring
Guillaume Bourgeois 6 år sedan
förälder
incheckning
f2874dbe71
1 ändrade filer med 9 tillägg och 8 borttagningar
  1. +9
    -8
      backend/controllers/CommunicateController.php

backend/controllers/CommuniquerController.php → backend/controllers/CommunicateController.php Visa fil

@@ -38,10 +38,12 @@ termes.

namespace backend\controllers;

use common\models\Producer ;

/**
* UserController implements the CRUD actions for User model.
*/
class CommuniquerController extends BackendController
class CommunicateController extends BackendController
{

public function behaviors() {
@@ -75,10 +77,10 @@ class CommuniquerController extends BackendController
*/
public function actionIndex()
{
$etablissement = Etablissement::findOne(['id' => Yii::$app->user->identity->id_etablissement]);
$producer = Producer::searchOne() ;

return $this->render('index', [
'etablissement' => $etablissement,
'producer' => $producer,
]);
}

@@ -88,15 +90,14 @@ class CommuniquerController extends BackendController
*
* @return string
*/
public function actionModeemploi()
public function actionInstructions()
{

$etablissement = Etablissement::findOne(['id' => Yii::$app->user->identity->id_etablissement]);
$producer = Producer::searchOne() ;

// get your HTML raw content without any layouts or scripts
$content = $this->renderPartial('mode_emploi_multi', [
$content = $this->renderPartial('instructions_multi', [
'pdf' => true,
'etablissement' => $etablissement
'producer' => $producer
]);

$pdf = new Pdf([

Laddar…
Avbryt
Spara