Posted 10 October 2008 - 09:15 AM
the views created contains obviously standard html code. I want to use other html code for my scaffolds. is it possibile to create sort on "mycrud" commad?
how to approach?
Posted 10 October 2008 - 11:57 AM
You can create your own shell commands (such as crud) by extending existing shell commands (e.g. CrudCommand), and specify your own templatePath.
Posted 14 October 2008 - 08:23 AM
I have extended CrudCommand but what i don't want to do is duplicate your controller.php class that is in /views/shell/crud. now if I set templatePath, I have to put in that path all the necessary files (controller.php, create.php, list.php, etc..).
Don't you think is a good idea that you check for every file (run in CrudCommand.php) and use the custom one when found and standard when not?
Posted 14 October 2008 - 09:43 AM
another thing: if I set protectedAttributes() in activerecord class, this fields are created in insert and update views. don't you think it is not right?
Posted 14 October 2008 - 10:32 AM