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 | ||
| info:cake [2018/12/28 08:46] – radeff | info:cake [2024/08/05 16:22] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 22: | Ligne 22: | ||
| http:// | http:// | ||
| - | ===== Changelog ===== | ||
| - | |||
| - | http:// | ||
| - | ==== Version 1.2 ==== | ||
| - | |||
| - | http:// | ||
| - | [[http:// | ||
| - | |||
| - | ==== Todo / wish list v1.3 ==== | ||
| - | |||
| - | http:// | ||
| - | ===== Install notes ===== | ||
| - | http:// | ||
| - | |||
| - | ==== cakephp-instaweb ==== | ||
| - | intéressant aussi, permet d' | ||
| - | |||
| - | http:// | ||
| - | |||
| - | sudo apt-get install cakephp-instaweb | ||
| - | |||
| - | cakephp-instaweb | ||
| - | |||
| - | http:// | ||
| - | |||
| - | ==== KO ==== | ||
| - | |||
| - | sudo apt-get install cakephp cakephp-instaweb cakephp-scripts php5 python-twisted-bin python-twisted-core python-twisted-web python-zopeinterface bake | ||
| ==== ubuntu ==== | ==== ubuntu ==== | ||
| Ligne 66: | Ligne 38: | ||
| AllowOverride All | AllowOverride All | ||
| - | ==== OK ==== | + | |
| http:// | http:// | ||
| Ligne 141: | Ligne 113: | ||
| Configure:: | Configure:: | ||
| - | ==== cakephp_russ ==== | ||
| - | [[russe:cakephp_russe]] | + | attention: vous aurez des " |
| ===== Doc ===== | ===== Doc ===== | ||
| Ligne 374: | Ligne 345: | ||
| http:// | http:// | ||
| - | ==== TinyMCE ==== | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | [[cakeTinyMCE|petite démo]], mieux vaut | ||
| ==== FCKEditor ==== | ==== FCKEditor ==== | ||
| Ligne 589: | Ligne 555: | ||
| ====== Bake ====== | ====== Bake ====== | ||
| - | pour générer du code en bash avec cake: | + | pour faire votre cake en <del>un coup de baguette magique</del> ligne de commande |
| - | <code> | + | |
| - | sudo apt-get install cakephp1.3-scripts | + | |
| - | </code> | + | |
| - | puis voir doc sous http:// | + | https:// |
| + | ===== bake all ===== | ||
| + | ./bin/cake bake all TABLENAME | ||
| - | http:// | + | Pour faire ça sur une autre base que la base principale, utiliser |
| - | < | + | |
| - | cake bake db_config | + | |
| - | cake bake model | + | |
| - | cake bake view | + | |
| - | cake bake controller | + | |
| - | cake bake project | + | |
| - | cake bake test | + | |
| - | cake bake all | + | |
| - | cake bake controller Users | + | |
| - | </ | + | |
| - | http:// | ||
| - | si ça coince: http:// | ||
| - | < | ||
| - | echo $PATH | ||
| - | |||
| - | echo ' | ||
| - | |||
| - | . .profile | ||
| - | |||
| - | cake | ||
| - | </ | ||
| ===== Baking Controllers ===== | ===== Baking Controllers ===== | ||
| Ligne 650: | Ligne 595: | ||
| cake bake controller Users null admin | cake bake controller Users null admin | ||
| </ | </ | ||
| - | ===== All ===== | ||
| - | With the “all” parameter it is now possible to bake with one command a model plus the corresponding controller with its views: | ||
| - | < | ||
| - | cake bake all // asks you for the model name | ||
| - | cake bake all User | ||
| - | </ | ||
| ====== Editeurs ====== | ====== Editeurs ====== | ||
| Il semble qu' | Il semble qu' | ||
| Ligne 662: | Ligne 601: | ||
| Utiliser Quanta avec cake: http:// | Utiliser Quanta avec cake: http:// | ||
| ====== Tips ====== | ====== Tips ====== | ||
| - | ====== Limiter le nombre de caractères dans un champ (add/ | + | ===== cakephp2dokuwiki ===== |
| + | {{ : | ||
| + | ===== Limiter le nombre de caractères dans un champ (add/edit) ===== | ||
| utiliser l' | utiliser l' | ||