developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 11 years ago
Closed 11 years ago
#1097 closed bug (fixed)
Bloquer l'appelle de __construct depuis l'url
Reported by: | nesswaw | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.1.7 |
Component: | jelix:controllers | Version: | 1.1.6 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
Bonjour,
J'ai remarqué que si on mettait un constructeur dans un contrôleur, on peux appeler la méthode depuis l'url et cela nous renvoie une erreur.
<?php class testCtrl extends jController { public function __construct($request) { parent::__construct(); // le reste du code... } }
Et hop je peux appeler la méthode via le navigateur :
index.php/app/test/construct
Change History (2)
comment:1 Changed 11 years ago by laurentj
- Milestone set to Jelix 1.1.7
comment:2 Changed 11 years ago by laurentj
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
fixed