Bonjour,
Je suis sous MAC et je galère un peu pour réalisé des bake avec le terminal :

j'ai bien accès à toutes mes variables d'environnement :
mysql -- help : OK
php --help : OK
cake bake : OK

J'ai aussi défini un PATH pour ne pas avoir à retaper sans arrêt l'url pour cake.bat :
user/mon_username/cakephp/lib/Cake/console

Cependant, quand je veux réaliser mon 1er bake avec le terminal et la commande :
[code]
cake bake
[/code]

Voici le résultat :
[code]
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/Mon_username/cakephp/lib/Cake/Cache/CacheEngine.php on line 60

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/Mon_username/cakephp/lib/Cake/Cache/CacheEngine.php on line 60

Welcome to CakePHP v2.5.2 Console App : Mon_username
Path: /Users/Mon_username/

What is the path to the project you want to bake?
[/Users/Mon_username/myapp] >
[/code]
[b]j'ai déjà des warning, concernant 'timezone' ?[/b]

Puis je continue quand même, puisque pas si grave (?)

Je défini ma configuration par 'default' :

et une fois fait, quand je veux faire cake bake Model ou même cake bake M
je ne peu continuer :
je glisse le dossier ou ce trouve mon projet dans la console :
[code]
What is the path to the project you want to bake?
[/Users/Mon_username/myapp] > /Applications/MAMP/htdocs/cake_test
[/code]

puis à cette question laisse par défaut, puisque c'est l'url de mon dossier fixe pour l'accès au cake.bat :
[code]
What is the path to the directory layout you wish to copy?
[/Users/Mon_username/cakephp/lib/Cake/Console/Templates/skel] >

Created: cake_test in /Applications/MAMP/htdocs/cake_test
  • Random hash key created for 'Security.salt'
  • Random seed created for 'Security.cipherSeed'
  • Cache prefix set
  • app/Console/cake.php path set.
    CakePHP is not on your include_path, CAKE_CORE_INCLUDE_PATH will be hard coded.
    You can fix this by adding CakePHP to your include_path.
  • CAKE_CORE_INCLUDE_PATH set to /Users/Mon_username/cakephp/lib in webroot/index.php
  • CAKE_CORE_INCLUDE_PATH set to /Users/Mon_username/cakephp/lib in webroot/test.php
    • Remember to check these values after moving to production server
      Project baked successfully!
      Your database configuration was not found. Take a moment to create one. Database Configuration:

      Name:
      [default] >
      [/code]

je poursuis...
tout roule, jusqu'à la fin :
[code] The following database configuration will be created: Name: default
Datasource: mysql
Persistent: false
Host: localhost
Port: 8889
User: root
Pass: ****
Database: site
Encoding: UTF8 Look okay? (y/n)
[y] >
[/code]
je fait yes...
[code]
Creating file /Applications/MAMP/htdocs/cake_test/Config/database.php
Wrote /Applications/MAMP/htdocs/cake_test/Config/database.php
Mac-mini-de-mon_username:~ mon_username$
[/code]
puis à ce moment quand je fait :
[code]
cake bake M ou cake bake Model ou encore cake bake model
[/code]
il me renvois au début
[code]

What is the path to the directory layout you wish to copy?
[/Users/mo_username/cakephp/lib/Cake/Console/Templates/skel] >
[/code]

Une idée ? je doit pas faire ce qu'il faut :)

Merci

édit :

Merci Encore antho071 !!

Aucune réponse