Wiki

Sorted by date (updated)X
Displaying 531-540 of 745 result(s).

Avoiding rendering entire page when using CGridView and CListView via AJAX

Updated 2 years ago by xrxHow-tos17 comments – viewed 35,052 times – ( +24 ) – version 1.1
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.

CGridView: Display the full record (actionView) in a CJuiDialog

Updated 2 years ago by JobloTips7 comments – viewed 37,763 times – ( +15 ) – version 1.1
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

CGridView: Update/create records in a CJuiDialog

Updated 2 years ago by JobloTips11 comments – viewed 41,256 times – ( +14 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Access log output from unit tests

Updated 2 years ago by MikeTips2 comments – viewed 5,797 times – ( +4 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

CSV Export

Updated 2 years ago by JohnPollardHow-tos5 comments – viewed 13,134 times – ( +4 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Show captcha after <N> unsuccessfull attempts

Updated 2 years ago by zitterHow-tos7 comments – viewed 16,162 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Custom Autocomplete Display and Value Submission

Updated 2 years ago by SebKHow-tos5 comments – viewed 36,608 times – ( +14 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Adding Bash Command Completion for Yii Commands

Updated 2 years ago by Dustin OpreaHow-tos0 comments – viewed 7,374 times – ( +3 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Deploy yii on pagoda box

Updated 2 years ago by francis jaTutorials0 comments – viewed 6,888 times – ( +4 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Updated 2 years ago by pckabeerHow-tos1 comment – viewed 14,977 times – ( +7 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).