Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| php-rt:projets:projet-2017:micro-framework [2017/04/05 02:39] – [2- Configuration] jcheron | php-rt:projets:projet-2017:micro-framework [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 17: | Ligne 17: | ||
| - Exécuter le script **app/ | - Exécuter le script **app/ | ||
| - Editer le fichier de configuration app/ | - Editer le fichier de configuration app/ | ||
| - | - Editer le fichier de **.htaccess, | + | - Editer le fichier de **.htaccess**, et mettez éventuellement à jour le paramètre **RewriteBase** de la même façon. |
| + | - | ||
| <sxh bash> | <sxh bash> | ||
| Ligne 114: | Ligne 115: | ||
| class ExempleController extends BaseController{ | class ExempleController extends BaseController{ | ||
| public function index(){ | public function index(){ | ||
| - | $users=DAO:: | + | $users=DAO:: |
| ... | ... | ||
| } | } | ||
| Ligne 141: | Ligne 142: | ||
| class ExempleController extends BaseController{ | class ExempleController extends BaseController{ | ||
| public function index(){ | public function index(){ | ||
| - | | + | |
| | | ||
| } | } | ||
| Ligne 155: | Ligne 156: | ||
| class ExempleController extends BaseController{ | class ExempleController extends BaseController{ | ||
| public function index(){ | public function index(){ | ||
| - | | + | |
| | | ||
| } | } | ||
| Ligne 213: | Ligne 214: | ||
| use micro\orm\DAO; | use micro\orm\DAO; | ||
| - | $host=DAO:: | + | $host=DAO:: |
| </ | </ | ||
| Ligne 237: | Ligne 238: | ||
| <sxh php; | <sxh php; | ||
| - | $ticket=DAO:: | + | $ticket=DAO:: |
| </ | </ | ||
| Ligne 247: | Ligne 248: | ||
| <sxh php; | <sxh php; | ||
| - | $hosts=DAO:: | + | $hosts=DAO:: |
| </ | </ | ||
| Ligne 255: | Ligne 256: | ||
| <sxh php; | <sxh php; | ||
| - | $hosts=DAO:: | + | $hosts=DAO:: |
| foreach($hosts as $host){ | foreach($hosts as $host){ | ||
| echo $host."< | echo $host."< | ||
| Ligne 266: | Ligne 267: | ||
| <sxh php; | <sxh php; | ||
| - | $hosts=DAO:: | + | $hosts=DAO:: |
| </ | </ | ||
| Ligne 274: | Ligne 275: | ||
| <sxh php; | <sxh php; | ||
| - | $hosts=DAO:: | + | $hosts=DAO:: |
| </ | </ | ||
| Ligne 282: | Ligne 283: | ||
| <sxh php; | <sxh php; | ||
| - | $hosts=DAO:: | + | $hosts=DAO:: |
| </ | </ | ||
| Ligne 293: | Ligne 294: | ||
| <sxh php; | <sxh php; | ||
| - | $user=new User(); | + | $user=new |
| $user-> | $user-> | ||
| $user-> | $user-> | ||
| Ligne 304: | Ligne 305: | ||
| <sxh php; | <sxh php; | ||
| - | $user=new User(); | + | $user=new |
| $user-> | $user-> | ||
| $user-> | $user-> | ||
| Ligne 320: | Ligne 321: | ||
| <sxh php; | <sxh php; | ||
| - | $user=DAO:: | + | $user=DAO:: |
| $user-> | $user-> | ||
| try{ | try{ | ||
| Ligne 335: | Ligne 336: | ||
| <sxh php; | <sxh php; | ||
| - | $user=DAO:: | + | $user=DAO:: |
| try{ | try{ | ||
| DAO:: | DAO:: | ||