Since this is a matter of taste, Yii 2.0 ought to make it easier to plug in support for new frameworks.
UI components standardization
#21
Posted 12 January 2012 - 10:35 AM
Since this is a matter of taste, Yii 2.0 ought to make it easier to plug in support for new frameworks.
#22
Posted 12 January 2012 - 11:03 AM
phpnode, on 12 January 2012 - 04:58 AM, said:
Zurb Foundation doesn't have a main menu like the one of Bootstrap, it has less form styles (i.e. it doesn't have a green field for "success" etc.), it doesn't have a breadcrumb component, it doesn't have a native table columns sorter etc. etc. Foundation has - at the moment - some advantages over Bootstrap, but it is not as "complete" as Bootstrap (talking about UI components).
#23
Posted 12 January 2012 - 11:06 AM
And why Bootstrap sites tends to look so much alike.
#24
Posted 12 January 2012 - 11:12 AM
This is just my point of view, Foundation is nice too (indeed I suggested it in the other thread).
#25
Posted 12 January 2012 - 11:30 AM
#26
Posted 12 January 2012 - 11:34 AM
Ultimately, the only one who can decide on this is the Yii team.
#27
Posted 24 January 2012 - 07:44 AM
#28
Posted 24 January 2012 - 08:48 AM
ekerazha, on 24 January 2012 - 07:44 AM, said:
It looks almost the same as bootstrap for me
#29
Posted 24 January 2012 - 09:07 AM
btw, i like blueprint
#33
Posted 26 January 2012 - 10:38 AM
IMHO the problem at the moment is, that there's no convention which CSS or UI framework should be used. Blueprint is kinda default for the grid and jQuery UI also, but the problem is not which framework to use, but how to apply and change them.
I also want to point out, that there's huge difference between frontend components and backend modules. I explicitly say components for the frontend part and modules for the backend, because I think usually you'll use modules to reuse code of admin user interfaces, like RBAC, users or media management.
While your frontent layout is usually a very custom thing, maybe also with a background image or something, which can make it harder to use your default main layout also for a module, the focus in the backend lies more on usability and layout consistency (e.g. you want something like a top bar menu to switch between your administrative tasks).
In conclusion it would be very nice to have convention which CSS and/or grid framework should be used at least for backend modules. While I would vote for bootstrap - which is available in a very nice yii extension - I also want to point out, that using this extension raises other customization problems.
For example there are custom components to render specific grids or the menu bar - now if you're not happy with bootstrap, you could easily adjust the views and layouts with a theme, but you'd have find a solution, how to use these custom components, if you don't want to loose the cool features, like a top bar menu.
I think Yii itself should be a customizable as possible, it really does not matter with which grid-system you start developing your app. What does matter are the extended UI components (calendar, slider, accordion, ...) which are often encapsulated in components and therefore not easily portable to another theme, also there's no feature to theme widgets ... and the backend part.
I really would like to create an extended set of module conventions with other developers who are interested in this topic!
The basics are already there, see [1] and [2].
Here's quick list of the topics I would like to address: Package Management; Dependencies (Extensions in Extensions); Prefixing/Namespaces; Configuration; Installation; Authentication and Permissions; CSS/Grid, UI Components; Views, Layouts and Themes; Themeing widgets with skins; Navigation.
Please PM me if you're interested.
Best regards,
schmunk
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#34
Posted 26 January 2012 - 11:17 AM
schmunk, on 26 January 2012 - 10:38 AM, said:
Maybe a better alternative, instead of requiring or binding to a CSS and/or grid framework, is to have standard semantics.
Then, instead of having to use predefined CSS and/or grid frameworks, one could add these classes to his stylesheet and use whatever framework.
Check my extension
giix: a code generator for Yii.

The complete beginner's study guide for the Yii Framework
#35
Posted 26 January 2012 - 11:23 AM
It means I can freely use whatever grid I want to use - and can even change it dynamically (in response to media queries, script, etc).
+1
#36
Posted 26 January 2012 - 11:35 AM
And doesn't this break the initial idea of having a predefined grid, where you can easily add a CSS class, without defining it in advance?
Please remember, my remarks mainly apply to backend modules.
[update]
@mentel: Could you give me a little example of your standard semantics?
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#37
Posted 26 January 2012 - 11:57 AM
schmunk, on 26 January 2012 - 11:35 AM, said:
It could be done, for example, adopting some common semantics from the most used frameworks.
schmunk, on 26 January 2012 - 11:35 AM, said:
There's no "my" example, since I don't use standard semantics.
--
Note that my goal here is to propose an alternative path, not a concrete solution.
A secondary goal is to counter your proposal, because I don't like the idea of being tied to a CSS/grid framework chosen by a thirdy-party.
Check my extension
giix: a code generator for Yii.

The complete beginner's study guide for the Yii Framework
#38
Posted 26 January 2012 - 01:06 PM
mentel, on 26 January 2012 - 11:57 AM, said:
But how would you accomplish this, e.g. blueprint uses 'span-8', while zurb foundation uses 'eight columns'.
And they're even not of the same size! So would you add class, e.g. 'half-width' and they add this class into the corresponding section of the css file of the framework.
mentel, on 26 January 2012 - 11:57 AM, said:
--
Note that my goal here is to propose an alternative path, not a concrete solution.
A secondary goal is to counter your proposal, because I don't like the idea of being tied to a CSS/grid framework chosen by a thirdy-party.
Me neither, but I would like to evaluate the pros and cons of the alternatives.
I also don't like to be tied to a specific framework, but even with the current options, you're able to overwrite the views for your modules ... and more important: if you develop a module, you have to choose some kind off CSS, styling your module. So why create or adopt new semantics, while there are already plenty very good ones out there? It's like creating CSS framework-framework
Yii as a framework doesn't take care of this, it just gives you all the options to configure your app layout and style.
But thinking about backend(!) modules I really would like to have a convention, because even if someone does not use the standard CSS framework for his module, you'd just have to provide a few themed views to integrate it seamlessly into your application.
And this would have a huge impact on pluggability of modules!
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#39
Posted 26 January 2012 - 04:16 PM
I think something similar could be built using Yii's form builder. It would then be the job of some custom theme, including renderers for the form builder to generate a consistent look and feel for all available packages that provide form configurations.
#40
Posted 26 January 2012 - 05:14 PM
schmunk, on 26 January 2012 - 01:06 PM, said:
And they're even not of the same size! So would you add class, e.g. 'half-width' and they add this class into the corresponding section of the css file of the framework.
Are you sure you understand what 'semantic' means?
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.

Help
This topic is locked














