Générer le modèle, le contrôleur et les templates depuis une table de la DB :
cd /var/www/mon_site sudo bin/cake bake model nom_de_la_table sudo bin/cake bake controller nom_de_la_table sudo bin/cake bake template nom_de_la_table sudo chown -R www-data:www-data ./src
On peut aussi générer tout d'un coup (model + controller + template) avec all :
sudo bin/cake bake all nom_de_la_table