Wiki articles in category Tutorials

Showing 121-140 of 258 items.

XUpload Workflow

Created 6 years ago by Asgaroth, updated 6 years ago by Asgaroth.

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 82 156 times
Version: 1.1
Category: Tutorials

Simple access control

Created 7 years ago by szfjozsef, updated 7 years ago by szfjozsef.

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.

3 7
10 followers
Viewed: 41 504 times
Version: 1.1
Category: Tutorials

MVC primer and 5 minute form walkthrough

Created 7 years ago by rix.rix., updated 7 years ago by rix.rix..

This tutorial assumes some basic knowledge of Yii and a functional development environment.

8 0
6 followers
Viewed: 23 303 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 7 years ago by hasanavi, updated 6 years ago by Stageline.

If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

33 1
43 followers
Viewed: 101 646 times
Version: 1.1
Category: Tutorials

Events explained

Created 7 years ago by pligor, updated 6 years ago by Ivo Renkema.

Let's see what exactly are the events in Yii!

15 3
25 followers
Viewed: 46 968 times
Version: 1.1
Category: Tutorials

Widget Personalizado

Created 7 years ago by Cálcio, updated 4 years ago by Cálcio.

$this->render('index', array( 'dataProvider' => $dataProvider, )); `

6 0
5 followers
Viewed: 8 938 times
Version: 1.1
Category: Tutorials

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

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

Many desktop programmers are used to having dynamic forms, where clicking on a record in a parent sub-form, updates another sub-form with the child records. While having many levels of nested sub-forms in a single view might not be such a good idea for a web application, I thought doing it one level deep might be interesting and useful. But, instead of sub-forms I used CGridViews.

Deploy yii on pagoda box

Created 7 years ago by francis ja, updated 7 years ago by francis ja.

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

4 0
5 followers
Viewed: 9 547 times
Version: 1.1
Category: Tutorials

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 7 years ago by c@cba, updated 7 years ago by c@cba.

    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this:
'value'=>'$data->author->username',.
    Now we might want to use $data in the declaration of the `...

19 1
14 followers
Viewed: 71 437 times
Version: 1.1
Category: Tutorials

Collaborative software with git

Created 7 years ago by sensorario, updated 7 years ago by Maurizio Domba Cerin.

The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

9 0
9 followers
Viewed: 10 119 times
Version: 1.1
Category: Tutorials

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created 7 years ago by marcanuy, updated 7 years ago by marcanuy.

I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

16 0
12 followers
Viewed: 34 438 times
Version: 1.1
Category: Tutorials

Exporting CGridView results to CSV file

Created 7 years ago by RusAlex, updated 7 years ago by RusAlex.

A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.

6 3
17 followers
Viewed: 54 277 times
Version: 1.1
Category: Tutorials

Setting application parameters dynamically in the back-end

Created 7 years ago by Pablovp, updated 7 years ago by Pablovp.

I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

11 0
15 followers
Viewed: 48 291 times
Version: 1.1
Category: Tutorials

Multiple file upload handler

Created 7 years ago by hasanavi, updated 7 years ago by hasanavi.

Hi,

5 0
7 followers
Viewed: 28 298 times
Version: 1.1
Category: Tutorials

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 7 years ago by c@cba, updated 7 years ago by c@cba.

You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen.
Note that currently selected language is always a part...

28 0
42 followers
Viewed: 65 348 times
Version: 1.1
Category: Tutorials

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 7 years ago by c@cba, updated 7 years ago by c@cba.

In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this.
We implement an event handler for the onBeginRequest event; as the nam...

9 0
19 followers
Viewed: 43 030 times
Version: 1.1
Category: Tutorials

Front-end developer's guide

Created 7 years ago by jonah, updated 7 years ago by waitekk.

This wiki is a work in progress.

10 0
19 followers
Viewed: 32 413 times
Version: 1.1
Category: Tutorials

Secure password hash storage and a Yii helper extension

Created 7 years ago by fsb, updated 5 years ago by fsb.

This wiki has been replaced by Use crypt() for password storage.

13 0
13 followers
Viewed: 33 600 times
Version: 1.1
Category: Tutorials

Searching and sorting by related model in CGridView

Created 7 years ago by Maciej Liżewski, updated 5 years ago by Kostas Apazidis (KonApaz).

Lets say we have two models and relation between them:

76 0
96 followers
Viewed: 219 158 times
Version: 1.1
Category: Tutorials

How to use Flash, Zend AMF and Yii Framework

Created 7 years ago by janisto, updated 7 years ago by janisto.

This is a simple demo how to use Zend_AMF with Yii.

3 0
6 followers
Viewed: 13 149 times
Version: 1.1
Category: Tutorials