Wiki articles

Showing 1-20 of 650 items.

First Yii App: CTabView

Created 10 years ago by meanpenguin, updated 7 years ago by Yang He.

Once you are completed with the "Creating First Yii Application", the following can be done.

0 2
1 follower
Viewed: 23 202 times
Version: 1.1
Category: Tutorials
Tags:

Gettext and Poedit HOWTO

Created 4 years ago by Maug Lee, updated 4 years ago by Maug Lee.

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 9 278 times
Version: 1.1
Category: Tutorials

Q: My yiic tool cannot run model and crud commands. Why?

Created 10 years ago by qiang, updated 10 years ago by mishhh.

Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

0 0
1 follower
Viewed: 11 167 times
Version: 1.1
Category: Tutorials
Tags:

How to keep filters simple in CGridView

Created 4 years ago by Peppe, updated 4 years ago by le_top.

The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

0 0
2 followers
Viewed: 9 528 times
Version: 1.1
Category: How-tos

Building Page Specific Menus using CMenu

Created 6 years ago by mistryb, updated 4 years ago by mistryb.

The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.

0 0
3 followers
Viewed: 14 417 times
Version: 1.1
Category: How-tos
Tags: CMenu

How to create a custom exception and show it friendly with CJuiDialog

Created 4 years ago by Fábio Sales, updated 4 years ago by Fábio Sales.

Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

0 0
1 follower
Viewed: 14 549 times
Version: 1.1
Category: How-tos

Display Status image on CGridView column

Created 6 years ago by Ankit Modi, updated 8 months ago by samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 16 984 times
Version: 1.1
Category: Tutorials

Using Yii Gallery Manager in your Yii 1.x application

Created 4 years ago by Trejder, updated 4 years ago by Trejder.

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 10 469 times
Version: 1.1
Category: How-tos

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created 4 years ago by Gerhard Liebenberg, updated 4 years ago by Gerhard Liebenberg.

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4 followers
Viewed: 10 524 times
Version: 1.1
Category: How-tos

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 6 years ago by Ankit Modi, updated 4 years ago by Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 14 952 times
Version: 1.1
Category: Tutorials

Console Based CAuthManager Helper

Created 4 years ago by bluyell, updated 4 years ago by bluyell.

This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

0 0
1 follower
Viewed: 8 249 times
Version: 1.1
Category: How-tos

How to make customizable Db Table prefixes using ActiveRecord

Created 10 years ago by killermonk, updated 9 years ago by killermonk.

Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.

0 0
1 follower
Viewed: 19 056 times
Version: 1.1
Category: Tutorials
Tags:

How to have truly multilingual URLs

Created 4 years ago by oligalma, updated 2 years ago by Maurizio Domba Cerin.

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

0 0
3 followers
Viewed: 10 145 times
Version: 1.1
Category: How-tos

BUM - Add Additional Info to a User

Created 6 years ago by firefly, updated 4 years ago by Anibal.

How to add additional information to a user when using BUM extension?

0 0
4 followers
Viewed: 19 652 times
Version: 1.1
Category: How-tos

CMenu widget like bootstrap navbar with submenu

Created 3 years ago by kv4nt, updated 3 years ago by kv4nt.
0 0
1 follower
Viewed: 16 366 times
Version: 1.1
Category: Tutorials

Background task with Ajax

Created 3 years ago by Alexandre Rodichevski, updated 3 years ago by Alexandre Rodichevski.

This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.

0 0
1 follower
Viewed: 18 060 times
Version: 1.1
Category: Tutorials

Named scope - Get orphan AR without losing primary key

Created 9 years ago by cma, updated 8 years ago by Steve Friedl.

Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2 followers
Viewed: 7 419 times
Version: 1.1
Category: Tutorials
Tags:

Yiistrap TbHtml::navbarSearchForm

Created 5 years ago by Patrice, updated 5 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 12 414 times
Version: 1.1
Category: Tips

How to customize your grid columns visible and order by user themselves

Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.

0 0
1 follower
Viewed: 12 335 times
Version: 1.1
Category: How-tos

Interactive mode command-line command for Yii1

Created 2 years ago by Trejder, updated 2 years ago by Trejder.

For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

0 0
1 follower
Viewed: 13 818 times
Version: 1.1
Category: How-tos