yiisoft / yii

Yii PHP Framework 1.1.x
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
4.85k stars 2.28k forks source link

Major changes in CRUD #792

Closed lucianobaraglia closed 12 years ago

lucianobaraglia commented 12 years ago

I think the CRUD should be revised.

Some ideas: 1 - Drop current index view (I find the list view useless in a crud). 2 - Change current admin view to index so the index becomes the grid. 3 - Remove portlets and give submenu other position (let the grid use the entire space). 4 - Give admin links classes names.

Optionally: 5 - Remove the breadcrumb (do really we need it in a crud or is it just a show off?)

mdomba commented 12 years ago

There are many difference as there are developers... dropping the current index view just because you don't use it does not mean nobody is using it (btw I too don't use it).

You can always generate your custom Gii generators for the code you need - http://www.yiiframework.com/doc/guide/1.1/en/topics.gii#extending-gii

For more ideas about this check the giix extension on the yii site.

lucianobaraglia commented 12 years ago

Mmmh... I don't talk about making something work just for me... I am talking about making something more usable. Get the difference? You're not willing to change something if you see there is a better way to resolve it? REALLY? I think Qiang is a great web developer (and bet you guys are too), but the thing is...the CRUD is not usable...sorry...don't mean to be cruel here... I can't think about an scenario where you give a client a system and can use the CRUD as generated... See as an example the Doctrine admin generator in Symfony...now THAT IS at least usable...

And Mdomba, I know I can develop my custom generator code...I am using yii from 2 years ago...that's not the question. The problem with this approach is I can't just copy/paste a custom generator from version to version...

I am just triying to help the framework giving better xhtml/css code. Or you really think the current one is bulletproof or can't be better?

mdomba commented 12 years ago

you can always create an extension and share it with others so everybody can re-use it... like it's done with the giix extension - http://www.yiiframework.com/extension/giix

lucianobaraglia commented 12 years ago

Yes, Maurizio, I know about GIIX, great stuff by the way... But if I could just add an extension, I would do that and wouldn't need to open a issue. The problem with extensions is that usually are a one-man work, so maintance depends on the developer's mood.

I just have read: "Have a brilliant idea on how to improve Yii? Let us know. You can request features in Yii issue tracker." in http://www.yiiframework.com/contribute/, so I opened this issue. My idea isn't brilliant, just basic..."make CORE generated code better/more usable". Is there in the team someone working on usability anyway?

I repeat: I am just triying to help here.