Wiki

Sorted by date (updated)X
Displaying 561-570 of 777 result(s).

Using SQLite and CDbMessageSource as a module

Updated 4 years ago by pheadeauxHow-tos5 comments – viewed 13,936 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

MVC primer and 5 minute form walkthrough

Updated 4 years ago by rix.rix.Tutorials0 comments – viewed 18,761 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

How to: use github for download yii, create new app, and store our modules or extensions.

Updated 4 years ago by Maurizio Domba CerinHow-tos1 comment – viewed 12,504 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

How to hide `index` action from URL

Updated 4 years ago by rootbearHow-tos2 comments – viewed 15,361 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Simple access control

Updated 4 years ago by szfjozsefTutorials4 comments – viewed 36,245 times – ( +4 / -8 ) – version 1.1
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Updated 4 years ago by xrxHow-tos17 comments – viewed 39,009 times – ( +25 ) – 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 4 years ago by JobloTips7 comments – viewed 41,593 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 4 years ago by JobloTips12 comments – viewed 46,300 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 4 years ago by MikeTips2 comments – viewed 7,148 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 4 years ago by JohnPollardHow-tos5 comments – viewed 16,286 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