Newbie Code Generation Questions

I have another question that maybe fits in that topic and i hope you understand what i want to know:

I succesfully used gii(model + CRUD) for tables. Everythings works fine, nice work by the way. But i think it would be much more comfortable and universal, if you can use it with views. The thing is you often have a lot of tables that hold the information you want to show or edit. With a view you can compress the info to the important stuff.

The modelling works fine - as it seems. But when i try to Create CRUD its just showing a white page and is doing nothing. I am not really deep into yii, so i dont know how much effort it would cost to implement views into gii. But maybe sb can tell me if it will be implemented or if it is worth going that deep into the framework? Besides it think that for me and my time pressure it would be faster to make a work around.

Because of the view being a "sight-table" and not a real table, i would have thought it is really complicated to implemet it, but i know that you can edit rows of a view in phpmyadmin too. So i think that the cornerstone was set with this(as i am not a pro with yii this statement can be wrong). Maybe it makes more sense not to implement the Create function because it is really complex when you have difficult relations like the n:m(many2many). But i dont know exactly.

Summary:

will gii Crud work with views?

how much work is it to implement that?

opinions?

This would really help me out… thx in advance.

It may not be the best idea, according to the first answer to this question at Stack Overflow. He says that doing so may break other parts of your system, which sounds like quite a plausible risk considering how delicate everything is on a Mac.

There was a helpful answer here on this forum, in which someone got yiic to work on the command line by specifying the path to php when running it.

http://www.yiiframework.com/forum/index.php?/topic/16-db-connection-string/

Not sure if this will help with what you’re doing though.

@anroy

Note that you are answering to a question posted on 19. May. 2010