Extensions
Go to page:
I was having problems in creating an accordion menu which remembered state. Setting navigation to true in options didn't help.
After some time of debugging, I realised that the default CJuiAccordion class outputs the head sections as links with href as #, which causes navigation not to work. Even if you were to put "<a href='?r=blah'>A Header</a>" as the key, it wouldn't work either as it will create ANOTHER href with #.
So I wrote a quickie custom class to enable accordion menus which remember state.
Yii application component for using variables in CSS. Based on: http://net.tutsplus.com/tutorials/html-css-techniques/how-to-add-variables-to-your-css-files/
Haml and Sass have been used in Ruby for sometime to simplify templates (Haml) and make CSS more intelligent, flexible and manageable (Sass). This extension brings Haml and Sass to Yii.
It's kind of two extensions in one as you can use Haml and Sass independently of each other.
Included is PHamlP, a port of Haml and Sass to PHP. This is Haml/Sass V3.x compliant.
Haml
Haml is based on one primary principle. Markup should be beautiful.
Haml is a markup language that’s used to cleanly and simply describe the XHTML of any web document, without the use of inline code. It avoids the need for explicitly coding XHTML into the template, because it is actually an abstract description of the XHTML, with some code to generate dynamic content.
PHamlP comes with a rich set of filters that allow inclusion of javaScript, CSS, Sass, PHP, parsing with Markdown, and more.
PHamlP also provides some [helper methods][http://code.google.com/p/phamlp/wiki/HelperMethods] that can be used from your template, and you can extend the class and define your own.
PHamlP supports for, if, elseif, else, foreach, do, and while blocks.
Read the Haml tutorial then try it for yourself; you probably won't want to go back;
See http://haml-lang.com for details on Haml.
Sass
Sass is a meta-language on top of CSS that’s used to describe the style of a document cleanly and structurally, with more power than flat CSS allows.
It features include nested rules, variables, mixins, and more to make CSS powerful, manageable and DRY.
See http://sass-lang.com/ for details on Sass.
Resources
This extension provides a yiic shell command that can be used to initialize RBAC DB tables, especially during development. Configuration is provided by an authinit file, that allows Tasks, Operations, and Roles to be defined as array values. I found the SRBAC configuration screens to not sufficiently take advantage of Yii's ability to fully nest RBAC items, and also wanted a way to define configs independent of database tables during development, so that auth config information isn't lost (or needing to be archived) between database resets.
Notes
- This command is lightly tested - I use it in my daily development, but there may be issues that arise so YMMV, I'll post updates as I make them.
- Currently this command removes all RBAC information prior to running, including user assignments. Because of this, it's currently only appropriate for development work, or for small sites that can statically define all user assignments in the AuthInitCommand config file.
- This command is only compatible with CDbAuthManager
Future Features
- provide option to preserve authassignments, for updating RBAC configuration on production systems
Resources
This extension consist templates which you can use in Eclipse. They wraps all CHtml functions
Resources
- Home page
- demo - Not available yet
- Join discussion
- Report a bug
- Download from Google Code
A widget that quickly produces Google Static Maps.
Handles most features of the Static Maps API, with the exception of polylines
Resources
This extension sends Yii log messages to FirePHP. It inherits from CLogRoute and uses the same method and configuration as the other built-in logging components: CFileLogRoute, CWebLogRoute, etc.
Tested on Yii 1.1.0.
Resources
You can also download from the GitHub page
