Wiki

Sorted by ratingX
Displaying 71-80 of 468 result(s).

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 2 years ago by xrxHow-tos13 comments – viewed 22,230 times – ( +20 )
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Drills : Search by a HAS_MANY relation

Created 5 months ago by softarkTutorials9 comments – viewed 7,663 times – ( +20 )
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Yii for beginners 2

Created 2 months ago by rackyczTutorials2 comments – viewed 9,623 times – ( +20 )
Hi :-) Is that you again? Welcome !! :-)
tags: Created

How to upload a file using a model

Created 4 years ago by qiangTutorials21 comments – viewed 172,589 times – ( +68 / -6 )
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

Working with CGridView in Admin Panel

Created 10 months ago by vibhaJadwaniTutorials11 comments – viewed 29,106 times – ( +29 / -1 )
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

Setting and maintaining the language in Application (i18n)

Created 4 years ago by olafureTutorials9 comments – viewed 47,944 times – ( +19 )
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

How to upload image(photo), and path entry in database with update functionality

Created 10 months ago by kiran sharmaTips9 comments – viewed 30,277 times – ( +19 )
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

Theming your Zii Widgets

Created 2 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 28,258 times – ( +19 )
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

Multiple-database support in Yii

Created 2 years ago by Steve FriedlHow-tos8 comments – viewed 35,875 times – ( +19 )
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Dynamic Sidebar using CClipWidget

Created 2 years ago by SheldmanduHow-tos4 comments – viewed 14,981 times – ( +19 )
Most applications will have one or two sidebars and often you want to control the content that should appear in the sidebar based on the action. For example you will want to show something different on the homepage as opposed to some view page. While achieving this you generally also want to avoid putting the layout into each view, as that would mean if you wanted to change the layout (e.g. put the sidebar on the left instead of the right or do some funky layout which requires an additional div tag to be added) you'd have to go through every view, which does not achieve good code re-use. It is also bad practice to have lots of if statements in column2 layout just so that you can generate the sidebar correctly.