UI components standardization
#41
Posted 26 January 2012 - 08:27 PM
Check my extension
giix: a code generator for Yii.

The complete beginner's study guide for the Yii Framework
#42
Posted 26 January 2012 - 08:31 PM
And H5BP + Twitter Bootstrap integration is already planned: https://github.com/h...late/issues/936
#43
Posted 27 January 2012 - 04:24 AM
Maybe we should wait for it before starting a comparative.
Preview: http://markdotto.com...docs/index.html
This post has been edited by ekerazha: 27 January 2012 - 04:34 AM
#44
Posted 27 January 2012 - 07:26 AM
jacmoe, on 26 January 2012 - 05:14 PM, said:
It simply means that those layout specifics are taken out of the views and put into the style sheet.
I am currently using Sass/Compass with Susy (grid). And it has semantic support.
Sass/Compass also supports Blueprint semantically.
So, instead of using 'span-8', use a meaningful, semantic name.
And deal with it in the stylesheet.
Yeah OK, not a very well chosen example
You mean like this, assuming you're using blueprint as a grid?
.main {
@extend .span-16;
}
.sidebar {
@extend .span-8;
}While with zurb it would be like...
.main {
@extend .eight.columns;
}
.sidebar {
@extend .four.columns;
}I like that!
e.g. http://www.stuffandn...ions_table.html
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#45
Posted 27 January 2012 - 10:17 AM
Pros: They provide a very useful set of componets.
Cons: Less flexibility.
E.g. yii-bootstrap widgets comes with a set of special bootstap widgets ... would you write wrappers for them, when you'd like to use the views of a module which uses yii-bootrap with another grid or would you simply overwrite the views within your theme folder ... other solutions?
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#46
Posted 01 February 2012 - 01:43 AM
And yes, it is responsive.
You can download the full package, but it's also modular and pretty customizable http://twitter.githu...p/download.html
Notes about licensing: Bootstrap uses the Apache License 2.0, Zurb Foundation uses the MIT license.
#47
Posted 01 February 2012 - 05:39 AM
Yii (Blueprint + jQuery UI + custom) -- Bootstrap 2 -- Foundation -- HTML KickStart
is work in progress (I should complete it on Saturday)
#48
Posted 01 February 2012 - 06:08 AM
ekerazha, on 01 February 2012 - 05:39 AM, said:
Yii (Blueprint + jQuery UI + custom) -- Bootstrap 2 -- Foundation -- HTML KickStart
is work in progress (I should complete it on Saturday)
Nice, I am looking forward to this!
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#49
Posted 01 February 2012 - 10:18 AM
My vote is also for Bootstrap. A while ago I wrote a Bootstrap integration extension for Yii (you can find the link in my sig). I have customized Bootstrap for many projects so it is indeed customizable. Now with Bootstrap 2 it's easier since it they deployed a tool for creating a custom Bootstrap package (much like jQuery UI).
People are not yet that familiar with LESS and the advantages it brings over CSS. The fact that Bootstrap is built using LESS is a really good pro since it allows you to use their variables, mixins, etc. in your own LESS.
However, the HTML generated by CHtml is not exactly compatible with Bootstrap. But I guess that that would not be a big issue.
#50
Posted 01 February 2012 - 10:31 AM
Chris83, on 01 February 2012 - 10:18 AM, said:
Where are the glitches, is it about special attributes like
data-toggle="modal"?
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#51
Posted 01 February 2012 - 11:10 AM
#52
Posted 03 February 2012 - 03:09 AM
I had to write my custom versions of activeRadioButtonList and activeCheckBoxList.
#53
Posted 03 February 2012 - 10:06 AM
Mike, on 03 February 2012 - 03:09 AM, said:
I had to write my custom versions of activeRadioButtonList and activeCheckBoxList.
You mean bootstrap, Mike?
#55
Posted 03 February 2012 - 10:24 AM
That's not a valid answer.
#56
Posted 03 February 2012 - 01:02 PM
#57
Posted 04 February 2012 - 06:22 AM
It is easy to get the same functionality using Foundation.
The problem is that once you want to choose other types of elements than the one included in Bootstrap, you are going to do a lot of work which you otherwise wouldn't have done.
So my vote is still on Foundation. I can't see why Yii couldn't build on top of that and add its own set of widgets.
Would make it more flexible, and inherently more Yii-like.
But I would be fine with Boostrap - let's not underestimate the value of popularity..
#58
Posted 04 February 2012 - 11:46 AM
jacmoe, on 04 February 2012 - 06:22 AM, said:
But this is not bootstrap specific, it applies always for elements which are not included in your framework.
jacmoe, on 04 February 2012 - 06:22 AM, said:
Would make it more flexible, and inherently more Yii-like.
For Bootstrap there's already a complete extension, work for Bootstrap 2 is in progress. For zurb foundation, there's only orbitslider available. Yii itself currently uses jQuery UI, which is also used by Bootstrap 2 - they should be more or less compatible, maybe Chris83 can say a few things about the the compatibility.
What's about the idea of having a widget class map? E.g. you'd always use CTabsWidget in your code, which is translated to CJuiTabs by default:
'CTabsWidget' => 'CJuiTabs'
or choose bootstrap ...
'CTabsWidget' => 'BootTabs'
You could also 'retransform' bootstrap widgets in extensions:
'BootTabs' => 'CJuiTabs'
jacmoe, on 04 February 2012 - 06:22 AM, said:
+1
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#59
Posted 04 February 2012 - 11:06 PM
Yes it is flexible...
preview.png (61.92K)
Number of downloads: 72
#60
Posted 05 February 2012 - 01:13 PM
My opinion in short: Go for Twitter Bootstrap 2.0.
Between Zurb Foundation and Boostrap 1.x maybe I'd have chosen Foundation, but Bootstrap 2.0 is another story.

Help

This topic is locked














