Wiki articles

Showing 341-360 of 651 items.

Simple RBAC

Created 11 years ago by hasanavi, updated 11 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: 118 608 times
Version: 1.1
Category: Tutorials

Events explained

Created 11 years ago by pligor, updated 11 years ago by Ivo Renkema.

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

16 3
24 followers
Viewed: 56 201 times
Version: 1.1
Category: Tutorials

Widget Personalizado

Created 11 years ago by Cálcio, updated 9 years ago by Cálcio.

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

6 0
4 followers
Viewed: 10 542 times
Version: 1.1
Category: Tutorials

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 891 times
Version: 1.1
Category: How-tos

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.

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

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

When you're finished following this article, you'll have a website that integrates WordPress and Yii routes in under one path. For example, you can setup /widgets and /customers to point to Yii controllers and /about-us, /contact-us, /blog/* and /faq pointing to WordPress pages.

19 0
24 followers
Viewed: 85 357 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 654 times
Version: 1.1
Category: How-tos

How to catch and log MySQL deadlock errors

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

This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.

4 0
7 followers
Viewed: 20 615 times
Version: 1.1
Category: Tips
Tags: database

Searching and Sorting by Count of Related Items in CGridView

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

class Post extends CActiveRecord {

...

} ` When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.

21 0
40 followers
Viewed: 58 416 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

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

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 63 642 times
Version: 1.1
Category: How-tos

Deploy yii on pagoda box

Created 12 years ago by francis ja, updated 11 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: 11 923 times
Version: 1.1
Category: Tutorials

using multiple radio button

Created 12 years ago by francis ja, updated 9 years ago by Rohit Suthar.

When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

6 0
13 followers
Viewed: 73 649 times
Version: 1.1
Category: Tips

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

Created 12 years ago by c@cba, updated 12 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: 79 850 times
Version: 1.1
Category: Tutorials

Using Yii with PHP 5.4 built-in webserver instead of Apache

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

Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

21 0
5 followers
Viewed: 20 335 times
Version: 1.1
Category: How-tos

Getting the Most out of APC for Yii

Created 12 years ago by Da:Sourcerer, updated 10 years ago by Da:Sourcerer.

In addition to the opcode cache, APC can also serve as a user cache for Yii via [CApcCache]. It should be noted that this will make APC's memory needs less predictable.

15 0
19 followers
Viewed: 49 075 times
Version: 1.1
Category: How-tos
Tags: apc, caching

AssetManager: clearing browser's cache on site update

Created 12 years ago by dhampik, updated 11 years ago by dhampik.

If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

15 0
25 followers
Viewed: 57 616 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 353 times
Version: 1.1
Category: How-tos

CGridView keep focus on the control after filtering

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

You can find the reason why I wrote this article here.

5 0
10 followers
Viewed: 17 008 times
Version: 1.1
Category: How-tos

Collaborative software with git

Created 12 years ago by sensorario, updated 12 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: 13 893 times
Version: 1.1
Category: Tutorials

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

Created 12 years ago by marcanuy, updated 12 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: 41 210 times
Version: 1.1
Category: Tutorials