Wiki

Sorted by date (updated)X
Displaying 371-380 of 691 result(s).

AssetManager: clearing browser's cache on site update

Updated about a year ago by dhampikHow-tos4 comments – viewed 22,203 times – ( +17 ) – version 1.1
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

Create sitemap.xml file dynamically on root folder with one hit

Updated about a year ago by kiran sharmaHow-tos1 comment – viewed 10,066 times – ( +5 / -5 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

YiiBoilerplate - Setup a professional project structure in seconds

Updated about a year ago by Antonio RamirezOthers53 comments – viewed 45,177 times – ( +47 ) – version 1.1
YiiBoilerplate
tags: directory, config

Accessing data in a join table with the related models

Updated about a year ago by kroweHow-tos8 comments – viewed 68,971 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Create your own Validation Rule

Updated about a year ago by GismoHow-tos11 comments – viewed 122,427 times – ( +72 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Updated about a year ago by Maurizio Domba CerinTips3 comments – viewed 9,081 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Image resize on the fly

Updated about a year ago by TpoxaHow-tos3 comments – viewed 12,919 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

XUpload Workflow

Updated about a year ago by AsgarothTutorials32 comments – viewed 47,070 times – ( +33 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

Using International Dates

Updated about a year ago by nkdHow-tos4 comments – viewed 28,900 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

The complete beginner's study guide for the Yii Framework

Updated about a year ago by Rodrigo CoelhoTips2 comments – viewed 46,468 times – ( +20 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.