Wiki articles in category Tutorials

Showing 81-100 of 219 items.

Working with radiobutton list

Created 13 years ago by vibhaJadwani vibhaJadwani, updated 13 years ago by vibhaJadwani vibhaJadwani.

This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

9 0
10 followers
Viewed: 133 308 times
Version: 1.1
Category: Tutorials

XUpload Workflow

Created 13 years ago by Asgaroth Asgaroth, updated 12 years ago by Asgaroth Asgaroth.

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 98 775 times
Version: 1.1
Category: Tutorials

Simple access control

Created 13 years ago by szfjozsef szfjozsef, updated 13 years ago by szfjozsef 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: 47 819 times
Version: 1.1
Category: Tutorials

MVC primer and 5 minute form walkthrough

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

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

8 0
6 followers
Viewed: 31 287 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 13 years ago by hasanavi hasanavi, updated 12 years ago by Stageline 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: 124 725 times
Version: 1.1
Category: Tutorials

Events explained

Created 13 years ago by pligor pligor, updated 12 years ago by Ivo Renkema Ivo Renkema.

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

16 3
24 followers
Viewed: 58 577 times
Version: 1.1
Category: Tutorials

Widget Personalizado

Created 13 years ago by Cálcio Cálcio, updated 10 years ago by Cálcio Cálcio.

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

6 0
4 followers
Viewed: 11 358 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 13 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 11 years ago by Gerhard Liebenberg 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 13 years ago by francis ja francis ja, updated 13 years ago by francis ja 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: 12 955 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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: 82 093 times
Version: 1.1
Category: Tutorials

Collaborative software with git

Created 13 years ago by sensorario sensorario, updated 13 years ago by Maurizio Domba Cerin 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: 15 471 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by marcanuy marcanuy, updated 13 years ago by marcanuy 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: 43 174 times
Version: 1.1
Category: Tutorials

Exporting CGridView results to CSV file

Created 13 years ago by RusAlex RusAlex, updated 13 years ago by RusAlex 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
18 followers
Viewed: 70 979 times
Version: 1.1
Category: Tutorials

Setting application parameters dynamically in the back-end

Created 13 years ago by Pablovp Pablovp, updated 13 years ago by Pablovp 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.

12 0
16 followers
Viewed: 64 605 times
Version: 1.1
Category: Tutorials

Multiple file upload handler

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

Hi,

5 0
7 followers
Viewed: 34 186 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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: 80 037 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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: 51 763 times
Version: 1.1
Category: Tutorials

Front-end developer's guide

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

This wiki is a work in progress.

10 0
19 followers
Viewed: 43 078 times
Version: 1.1
Category: Tutorials

Secure password hash storage and a Yii helper extension

Created 13 years ago by fsb fsb, updated 11 years ago by fsb fsb.

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

13 0
13 followers
Viewed: 78 100 times
Version: 1.1
Category: Tutorials

Searching and sorting by related model in CGridView

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

Lets say we have two models and relation between them:

77 0
93 followers
Viewed: 291 970 times
Version: 1.1
Category: Tutorials