Wiki

Displaying 141-150 of 467 result(s).

Using SQLite and CDbMessageSource as a module

Created 10 months ago by pheadeauxHow-tos4 comments – viewed 4,365 times – ( +4 )
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.

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

Created 11 months ago by sensorarioHow-tos1 comment – viewed 4,662 times – ( +7 )
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

Created 11 months ago by rootbearHow-tos2 comments – viewed 6,264 times – ( +3 / -2 )
Here is my experiment inspired by my own question and others from the forum.
tags: index

Simple access control

Created 11 months ago by szfjozsefTutorials4 comments – viewed 13,867 times – ( +2 / -6 )
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.

Access log output from unit tests

Created 11 months ago by MikeTips2 comments – viewed 2,985 times – ( +2 )
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.

Show captcha after <N> unsuccessfull attempts

Created 11 months ago by zitterHow-tos6 comments – viewed 7,445 times – ( +14 / -3 )
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).

CSV Export

Created 11 months ago by JohnPollardHow-tos5 comments – viewed 5,532 times – ( +4 )
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

Importing CSV file to mysql table using "LOAD DATA" command.

Created 11 months ago by sirin kTips10 comments – viewed 13,920 times – ( +5 )
hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.
tags: csv, mysql, import

Adding Bash Command Completion for Yii Commands

Created 11 months ago by Dustin OpreaHow-tos0 comments – viewed 3,955 times – ( +1 )
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

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

Created 11 months ago by pckabeerHow-tos1 comment – viewed 6,304 times – ( +6 )
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).