I use the generate to create the controller
$./script/generate controller Book
class BookController extends ApplicationController
{
Notice: Undefined variable: actions in /home/jervis/booklink/lib/utils/generators/controller/templates/controller.tpl on line 9
Warning: Invalid argument supplied for foreach() in /home/jervis/booklink/lib/utils/generators/controller/templates/controller.tpl on line 9
}
PS: I found that the generators directory has moved to the LIB
Just fixed it at current trunk. I always add the actions I want on my controller when using the controller generator. That way I also have the views created for me. Thanks for pointing out this bug.
Its been fixed on rev.349
ps:I found that the generators directory has moved to the LIB
Yes, thats for making updates on core generators less painful. I'll provide the means for custom generators at an application level once I finish the plugin system.
BTW, got your email :)
1 to 3 of 3