@@ -102,7 +102,7 @@ |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | public function toString() { |
| 105 | - return $this->libelle; |
|
| 105 | + return $this->libelle; |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -class ProjetsController extends \ControllerBase{ |
|
| 3 | +class ProjetsController extends \ControllerBase { |
|
| 4 | 4 | |
| 5 | 5 | protected $model; |
| 6 | 6 | protected $title; |
| 7 | 7 | protected $controller; |
| 8 | 8 | |
| 9 | - public function initialize(){ |
|
| 9 | + public function initialize() { |
|
| 10 | 10 | $this->model = "Projet"; |
| 11 | 11 | $this->title = "Projets"; |
| 12 | 12 | $this->controller = "Projets"; |
@@ -3,25 +3,25 @@ |
||
| 3 | 3 | class TestController extends \Phalcon\Mvc\Controller |
| 4 | 4 | { |
| 5 | 5 | |
| 6 | - protected $model; |
|
| 7 | - protected $title; |
|
| 8 | - protected $controller; |
|
| 6 | + protected $model; |
|
| 7 | + protected $title; |
|
| 8 | + protected $controller; |
|
| 9 | 9 | |
| 10 | 10 | public function indexAction() |
| 11 | 11 | { |
| 12 | - $operationsBdd = Operation::find(); |
|
| 13 | - foreach ($operationsBdd as $operation) { |
|
| 14 | - $operations[] = $operation->getOperation(); |
|
| 15 | - } |
|
| 16 | - foreach ($operations as $operation) { |
|
| 17 | - echo $operation; |
|
| 18 | - } |
|
| 12 | + $operationsBdd = Operation::find(); |
|
| 13 | + foreach ($operationsBdd as $operation) { |
|
| 14 | + $operations[] = $operation->getOperation(); |
|
| 15 | + } |
|
| 16 | + foreach ($operations as $operation) { |
|
| 17 | + echo $operation; |
|
| 18 | + } |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function initialize() { |
| 22 | - $this->model="Test"; |
|
| 23 | - $this->title="Test"; |
|
| 24 | - $this->controller="Test"; |
|
| 22 | + $this->model="Test"; |
|
| 23 | + $this->title="Test"; |
|
| 24 | + $this->controller="Test"; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | } |
@@ -19,9 +19,9 @@ |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function initialize() { |
| 22 | - $this->model="Test"; |
|
| 23 | - $this->title="Test"; |
|
| 24 | - $this->controller="Test"; |
|
| 22 | + $this->model = "Test"; |
|
| 23 | + $this->title = "Test"; |
|
| 24 | + $this->controller = "Test"; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | } |