Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 191-200 of 309 result(s).

MigrateCommand class for multiple sites using one code base

Updated about a year ago by Hudson NguyenHow-tos1 comment – viewed 2,984 times – ( +1 ) – version 1.1
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

Creating a jQueryUI Sortable CGridView

Updated about a year ago by rAWTAZHow-tos22 comments – viewed 29,715 times – ( +44 / -1 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

How to generate Yii-like Documentation

Updated about a year ago by fsbHow-tos9 comments – viewed 24,607 times – ( +45 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Using CButtonColumn to customize buttons in CGridView

Updated about a year ago by GismoHow-tos17 comments – viewed 190,661 times – ( +96 ) – version 1.1
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

Secure password hashing with bCrypt

Updated about a year ago by Ivo PereiraHow-tos3 comments – viewed 18,148 times – ( +9 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

How to use YiiBooster Bootstrap Gallery

Updated about a year ago by Antonio RamirezHow-tos3 comments – viewed 20,123 times – ( +4 ) – version 1.1
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

AssetManager: clearing browser's cache on site update

Updated about a year ago by dhampikHow-tos4 comments – viewed 22,218 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,070 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

Accessing data in a join table with the related models

Updated about a year ago by kroweHow-tos8 comments – viewed 69,015 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,529 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.