UI components standardization
Posted 31 December 2011 - 05:30 AM
- Webapp uses Blueprint (customized).
- The framework integrates jQuery UI.
- Keep jQuery UI.
- Add jQuery Mobile.
- Remove Blueprint.
- Use jQuery UI and jQuery Mobile for webapp.
- Move jQuery UI to an external extension (remove it from the core).
- Remove Blueprint.
- Use Bootstrap 2 http://twitter.github.com/bootstrap/ (version 2 is under development https://github.com/t...ap/tree/2.0-wip and it will have some responsive/adaptive goodness, it could be ready for the Yii 2 release) for webapp (it could also be added as a 3rd party component to the core framework, just like jQuery UI is actually part of the framework).
My personal vote is for B.
Posted 31 December 2011 - 06:19 AM
Posted 31 December 2011 - 07:20 AM
Bootstrap is too limiting IMO.
Makes web apps look too similar.
Foundation is more flexible.
However, what I would really like is the ability to easily make 'blueprint' applications in Yii (no, I don't mean the framework BluePrint).
I mean: custom webapps.
Then people could contribute custom starter apps, based on Bootstrap, Foundation, with extended auth, one-page jQuery UI, etc.
Currently, what I do is copy the contents of yii/framework/cli/views/webapp and the webapp command to make my own custom starter app.
Because I don't want to change the same things each time I start a new app.
Posted 31 December 2011 - 09:48 AM
It's simply a better solution IMO.
But do take each one for a spin.
The problem with Bootstrap at the moment is that it's geared towards the same type and style of apps.
Which is internal Twitter apps.
Foundation has more built into it.
And it seems more actively maintained.
But just try them out.
I think you'll find that the Foundation grid is more enjoyable to use than the Bootstrap one.
Besides, I think Zurb is a cooler entity than Twitter.
They do some cool things.
Posted 31 December 2011 - 10:01 AM
Take a peek at the Foundation Case Studies to see what it can do.
http://foundation.zu...ase-soapbox.php - 5 different apps.
Posted 01 January 2012 - 10:18 PM
A proper solution would to move the whole thing into a adapter type interface still within the package manager so people can pick and choose what they want to use. This would give access for people to switch other libraries easier and extensions that use existing libraries could integrate better. I'm a jQuery junkie though so can't see why anyone would want to use another library!
Posted 10 January 2012 - 04:34 AM
By using semantics I can change the underlying grid as I like.
So plus one for that.
I am not sure if Foundation supports it out of the box, but it wouldn't be much of a problem to make a wrapper for it.
Posted 11 January 2012 - 08:48 AM
Posted 11 January 2012 - 11:30 AM
i agree, but since you can transform it in a cms or whatever in five minutes, it is nice to have a good style setup to work with. as you say you can keep Yii style for some modules, like backends and some forms maybe.
Posted 12 January 2012 - 04:32 AM
Bootstrap already has everything that Yii needs, while Zurb Foundation would require some custom UI components for menus, breadcrumbs, forms, tables column sorting etc.
Obviously, I'm talking about Boostrap 2.x (which is WIP), as the current 1.x version is not responsive.