Wiki articles in category How-tos

Showing 121-140 of 292 items.

Simple example for language translation

Created 10 years ago by RKA, updated 10 years ago by CeBe.

Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.

1 0
5 followers
Viewed: 37 455 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii

Secure password hashing with bCrypt

Created 12 years ago by waitforit, updated 11 years ago by Ivo Pereira.

In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

5 0
9 followers
Viewed: 37 157 times
Version: 1.1
Category: How-tos

Add Beautiful Radio/Checkbox Buttons To Grid

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

The basic idea is to render a grid and, for each row, render a set of radio buttons that asynchronously update their respective model.

6 0
16 followers
Viewed: 37 075 times
Version: 1.1
Category: How-tos

Database driven Cmenu

Created 12 years ago by twisted1919, updated 12 years ago by twisted1919.

This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.

12 0
17 followers
Viewed: 37 070 times
Version: 1.1
Category: How-tos

A simple go back button widget

Created 11 years ago by CTala, updated 11 years ago by bennouna.

We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

2 1
6 followers
Viewed: 37 016 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 12 years ago by Rutger, updated 7 years ago by Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 36 665 times
Version: 1.1
Category: How-tos

How to install pdo_oci

Created 14 years ago by gallego123, updated 12 years ago by gallego123.

From: http://lacot.org/ and me.

1 0
3 followers
Viewed: 36 421 times
Version: 1.1
Category: How-tos

"safe" and "unsafe" Model validators (massive assignments)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 7 years ago by brianvu.

Ok, it is a little bit difficult to full understanding the unsafe validator.

2 2
7 followers
Viewed: 36 269 times
Version: 1.1
Category: How-tos

Yii registry, how to use it, does it exist at all?

Created 12 years ago by dckurushin, updated 11 years ago by resurtm.

If you coming to Yii with experience with Zend Framework for example, most likely you get used to

Zend_Registry::get('paramName');
Zend_Registry::set('paramName');
6 0
9 followers
Viewed: 36 028 times
Version: 1.1
Category: How-tos

CGridView keep state of page and sort.

Created 12 years ago by Daniel, updated 12 years ago by Daniel.

Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.

5 0
13 followers
Viewed: 35 896 times
Version: 1.1
Category: How-tos

Hyphenation of routes in URL management

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

In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.

15 0
21 followers
Viewed: 35 533 times
Version: 1.1
Category: How-tos
Tags: URL

Update a part of content using AJAX when select a GridView row

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

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 35 483 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 370 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by le_top, updated 9 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 362 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 990 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 10 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 805 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 583 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 382 times
Version: 1.1
Category: How-tos

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 184 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 629 times
Version: 1.1
Category: How-tos
Tags: wordpress