Wiki articles in category How-tos

Showing 141-160 of 292 items.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 10 years ago by VINAY Kr. SHARMA, updated 7 years ago by VINAY Kr. SHARMA.

CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

3 0
12 followers
Viewed: 31 348 times
Version: 1.1
Category: How-tos

Login Form With email or Whatever

Created 9 years ago by nabil abdouali, updated 9 years ago by nabil abdouali.

Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

1 2
2 followers
Viewed: 31 712 times
Version: 1.1
Category: How-tos

CPhpAuthManager - how it works, and when to use it

Created 12 years ago by dckurushin, updated 12 years ago by François Gannaz.

It is actually mentioned in the documentation

1 2
6 followers
Viewed: 32 003 times
Version: 1.1
Category: How-tos

Image resize on the fly

Created 11 years ago by Tpoxa, updated 11 years ago by Tpoxa.
3 0
11 followers
Viewed: 32 226 times
Version: 1.1
Category: How-tos

Simple Share Widget for Facebook, twitter and google+

Created 12 years ago by softark, updated 9 years ago by Rohit Suthar.

This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

10 0
16 followers
Viewed: 32 296 times
Version: 1.1
Category: How-tos

multiple CActiveDataProviders in one CGridView

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Nashi.

There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

4 1
9 followers
Viewed: 32 455 times
Version: 1.1
Category: How-tos

Simple Web APIs for your Yii App

Created 10 years ago by shiv, updated 9 years ago by CeBe.

Its very common now-a-days to have Mobile app for web apps. For Mobile apps we need web APIs to fetch data or even post/update on web. We found a very simple method to make such interface. Mobile App can call plain get or post request and receive data back in JSON format. JSON is relatively easy for mobile app to handle while plain standard GET/POST request for easy for Web server to handle. This...

1 2
10 followers
Viewed: 32 468 times
Version: 1.1
Category: How-tos
Tags: API, JSON

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 10 years ago by Gerhard Liebenberg, updated 7 years ago by Gerhard Liebenberg.

Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

6 0
13 followers
Viewed: 32 762 times
Version: 1.1
Category: How-tos
11 0
20 followers
Viewed: 32 806 times
Version: 1.1
Category: How-tos

defaultScope

Created 10 years ago by Gerhard Liebenberg, updated 10 years ago by Gerhard Liebenberg.

This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

3 0
5 followers
Viewed: 32 920 times
Version: 1.1
Category: How-tos

Remove Byte Order Mark (BOM) from files recursively

Created 10 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by samdark.

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
7 followers
Viewed: 33 158 times
Version: all
Category: How-tos

Enforcing "You must agree" requirements in forms

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:

25 0
17 followers
Viewed: 33 231 times
Version: 1.1
Category: How-tos

Integrating Wordpress and Yii,Working Out The Details.

Created 11 years ago by drumaddict, updated 11 years ago by drumaddict.

First things first,follow the instructions in fr0d0z's article to set up WordPress.Regarding the WpController,I did not use an index view.So the code for WpController is

class WpController extends Controller
{
    public function init()
    {
	 // note that we disable the layout
        $this->layout = false;
        parent::init();
    }

7 0
13 followers
Viewed: 33 560 times
Version: 1.1
Category: How-tos
Tags: wordpress

Cron Jobs in Yii

Created 10 years ago by aarondfrancis, updated 8 years ago by Roman Solomatin.

I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

2 0
9 followers
Viewed: 34 110 times
Version: 1.1
Category: How-tos

How to pass the third parameter to UserIdentity on login authentication

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

2 0
5 followers
Viewed: 34 289 times
Version: 1.1
Category: How-tos

Show captcha after <N> unsuccessfull attempts

Created 11 years ago by zitter, updated 11 years ago by zitter.

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).

13 4
15 followers
Viewed: 34 481 times
Version: 1.1
Category: How-tos

How to create CJui Tabs : Render partial, Ajax tabs, color tabs

Created 10 years ago by Interboy, updated 9 years ago by xJose.

Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.

3 0
7 followers
Viewed: 34 728 times
Version: 1.1
Category: How-tos

Include Yii framework in a Joomla module

Created 13 years ago by zaccaria, updated 13 years ago by Anupam.

Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.

8 2
17 followers
Viewed: 34 916 times
Version: 1.1
Category: How-tos

Checking for "expired" sessions/logins on the client side

Created 10 years ago by le_top, updated 8 years ago by le_top.

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 35 287 times
Version: 1.1
Category: How-tos

How to use YiiBooster Bootstrap Gallery

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

3 0
9 followers
Viewed: 35 309 times
Version: 1.1
Category: How-tos