Wiki

Sorted by ratingX
Displaying 361-370 of 750 result(s).

Take more control of CGridview and model searching (related model or another controller)

Created about a year ago by Kostas Apazidis (KonApaz)How-tos5 comments – viewed 22,825 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Using recaptchlib in your projects

Created 4 years ago by Antonio RamirezHow-tos2 comments – viewed 8,610 times – ( +5 ) – version 1.1
It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

Extending CActiveForm for some form display fixes and language tweaks

Created 4 years ago by TrejderTips0 comments – viewed 14,492 times – ( +5 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Changing Controllers Name

Created 4 years ago by TrejderHow-tos0 comments – viewed 13,664 times – ( +5 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

CGridView customized CCheckBoxColumn

Created about a year ago by chandranTips2 comments – viewed 7,725 times – ( +5 ) – version 1.1
Hi friends,

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created about a year ago by edoardo849How-tos1 comment – viewed 6,295 times – ( +5 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

How to use EzComponents in Yii

Created 3 years ago by EhsanjsHow-tos0 comments – viewed 7,895 times – ( +5 ) – version 1.1
change your index.php

Patching PHP code (used as a library) without changing the original code!

Created 2 years ago by le_topTips0 comments – viewed 4,558 times – ( +5 ) – version 1.1
The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article Redefine PHP class methods or class giving me a head start to do what I wanted: patching third party code without touching the original to allow easy upgrades.
tags: patch, patching

using jqbargraph to create beautiful graphs

Created 2 years ago by MAHESH.E.UTips1 comment – viewed 6,540 times – ( +5 ) – version 1.1
If you are about to create a graph, the best option i would suggest is the jqbargraph.

Using updateAll and deleteAll with scopes

Created 10 months ago by le_topHow-tos4 comments – viewed 12,004 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.