Okay, I did some more digging. Using this latest stable release of cake (1.1.13.4450). In my /var/www/html/cake/templates/ directory, there is:
skel/ views/ inside views, there's 'home.thtml'. If I move that to ./skel/views/ pages/, I don't get the errors about home.thtml, but I still got the errors about tmp. So, I created ./skel/tmp, and this command completes without error: php ./cake/scripts/bake.php -project tbd Now, I want to start creating my models. I enter this command: php ./cake/scripts/bake.php -app tbd and bake prompts me to create my database config file, which is does with out error. This is where things get hairy. When I select 'M' to create my first model, I get the following errors: ********************************************************* [M]odel [C]ontroller [V]iew What would you like to Bake? (M/V/C) > M --------------------------------------------------------------- Model Bake: --------------------------------------------------------------- PHP Warning: file_put_contents(/var/www/html/cake/tbd/tmp/cache/ models/default_tbd_list): failed to open stream: No such file or directory in /var/www/html/cake_1.1.13.4450/cake/basics.php on line 871 Warning: file_put_contents(/var/www/html/cake/tbd/tmp/cache/models/ default_tbd_list): failed to open stream: No such file or directory in /var/www/html/cake_1.1.13.4450/cake/basics.php on line 871 Possible Models based on your current database: 1. Topic 2. User Enter a number from the list above, or type in the name of another model. > ********************************************************* Okay, so maybe I need to create a better tmp skel directory, right? So I add ./skel/tmp/cache/models. When I rerun the prior commands, create my db config file, and go to create my first model, it works okay, until I answer yes to supplying validation criteria... ********************************************************* What would you like to Bake? (M/V/C) > M --------------------------------------------------------------- Model Bake: --------------------------------------------------------------- Possible Models based on your current database: 1. Topic 2. User Enter a number from the list above, or type in the name of another model. > 1 Would you like to supply validation criteria for the fields in your model? (y/n) [y] > y PHP Warning: Invalid argument supplied for foreach() in /var/www/html/ cake_1.1.13.4450/cake/scripts/bake.php on line 445 Warning: Invalid argument supplied for foreach() in /var/www/html/ cake_1.1.13.4450/cake/scripts/bake.php on line 445 Would you like to define model associations (hasMany, hasOne, belongsTo, etc.)? (y/n) [y] > ********************************************************* At which point, I have no idea where to start looking. I think something is really broken with bake.php and/or the skel directory, but I don't know what it would be. Note: I went back to my prior version of cake that I had laying around (1.1.11.4064), installed it to a fresh directory, and ran bake, and was able to get my app up and running. What in the world is going on with bake.php? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
