I'm trying to overwrite the default template for a view generated by the crud module, I'v开发者_开发百科e been following this tutorial but when I run this command:
$ play crud:ov --template Posts/show
play! returns Invalid command: crud:ov
I'm using windows command prompt, and play! framework 1.2.3
From the online docs, it says
Open a shell, go the application directory and type:
play crud:ov --template Posts/show
So, I think the problem is just where you are running the command from. If you are not in your application, Play does not know which application it is updating the CRUD view.
try with this command :
$ play crud:ov {PATH_OF_YOUR_PROJECT} --template Posts/show
精彩评论