CakePHP: Error baking with bake.php

Written: Mar 6th 2007, 23:20

In the CakePHP (cake_1.1.13.4450.zip) I discovered an bug in bake.php. When trying to bake an model you get this error:


Fatal error: Cannot instantiate non-existent class:  model in /Users/gersh/Sites/cakephp/cake/scripts/bake.php on line 435

When I checked the source I found that these lines was commented out:

Line 131:     uses ('inflector', 'model'.DS.'model');
Line 132:     require_once (CORE_PATH.'cake'.DS.'app_model.php');
Line 133:     require_once (CORE_PATH.'cake'.DS.'app_controller.php');

After removing comments bake.php works just fine!

Back to posts list