Wiki articles in category Tutorials

Showing 141-160 of 264 items.

CGridView, CListView and CActiveDataProvider

Created 11 years ago by softark, updated 10 years ago by softark.

CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

26 0
33 followers
Viewed: 143 459 times
Version: 1.1
Category: Tutorials

Display image on CGridView column and open a fancy-box

Created 10 years ago by Ankit Modi, updated 10 years ago by Ankit Modi.

1) Add a fancy-box extension on admin page

0 0
2 followers
Viewed: 17 831 times
Version: Unknown (update)
Category: Tutorials

Help pages using Markdown view renderer

Created 10 years ago by nineinchnick, updated 10 years ago by nineinchnick.

This tutorial describes how to write your views for help pages using Markdown syntax to be able to generate PDFs from same source files.

0 0
4 followers
Viewed: 9 200 times
Version: Unknown (update)
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 12 years ago by Gerhard Liebenberg, updated 10 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.

Secure password hash storage and a Yii helper extension

Created 12 years ago by fsb, updated 10 years ago by fsb.

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

13 0
13 followers
Viewed: 38 640 times
Version: 1.1
Category: Tutorials

Catching bounce messages (NDR) and piping them to a Yii command

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

But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.

1 0
7 followers
Viewed: 19 425 times
Version: 1.1
Category: Tutorials

How to use ldap in UserIdentity for authentication

Created 14 years ago by BeerSerc, updated 10 years ago by Navarr.

Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

11 0
18 followers
Viewed: 90 184 times
Version: 1.1
Category: Tutorials

Implementing a User Level Access System

Created 12 years ago by Antonio Ramirez, updated 10 years ago by Phil Loaiza.

Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.

27 0
37 followers
Viewed: 70 429 times
Version: 1.1
Category: Tutorials

Add information to Yii::app()->user by extending CWebUser (better version)

Created 13 years ago by emix, updated 10 years ago by Anas AbuDayah.

I found a better solution.

5 0
10 followers
Viewed: 49 354 times
Version: 1.1
Category: Tutorials
Tags: rbac, user, Yii

Installing Yii Users and Rights to Newly Created Yii app

Created 11 years ago by Rajith R, updated 10 years ago by Rajith R.

After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

11 1
40 followers
Viewed: 107 864 times
Version: 1.1
Category: Tutorials

Making a CGridView to keep the selection between page changes

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

You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

2 0
3 followers
Viewed: 12 687 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

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

In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

3 0
9 followers
Viewed: 35 827 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

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

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 13 411 times
Version: 1.1
Category: Tutorials

Integrate Zend 2 XML writer into Yii

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

By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.

2 0
4 followers
Viewed: 48 671 times
Version: 1.1
Category: Tutorials
Tags: XML, zend

Tags manipulation using Select2 in single field

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

Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

2 0
35 followers
Viewed: 49 247 times
Version: 1.1
Category: Tutorials

Database Driven CMenu

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

Purpose

0 0
4 followers
Viewed: 7 819 times
Version: 1.1
Category: Tutorials
Tags:

Extension Development (beginner)

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

To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

Step 01: Have a Strategy

  • Is my extension just for fun/demonstration purposes or for everyday use in the real world? -...

default csrf security and ajax post in one controller

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

Hello Yii friends

0 3
8 followers
Viewed: 27 285 times
Version: 1.1
Category: Tutorials

Multi level dropdown menu in Bootstrap

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

To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

4 0
38 followers
Viewed: 32 973 times
Version: 1.1
Category: Tutorials

WordPress Role Based Authentication in Yii

Created 10 years ago by Bob G, updated 10 years ago by CeBe.

This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.

4 0
8 followers
Viewed: 18 783 times
Version: 1.1
Category: Tutorials