Wiki articles

Showing 1-20 of 651 items.

First Yii App: CTabView

Created 15 years ago by meanpenguin, updated 11 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: 27 501 times
Version: 1.1
Category: Tutorials
Tags:

Gettext and Poedit HOWTO

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

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 12 969 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by qiang, updated 15 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: 14 934 times
Version: 1.1
Category: Tutorials
Tags:

How to keep filters simple in CGridView

Created 9 years ago by Peppe, updated 9 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: 12 799 times
Version: 1.1
Category: How-tos

Convert JSON data to html table for display on page

Created a year ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 67 975 times
Version: all
Category: Tips
Tags: html, JSON

Building Page Specific Menus using CMenu

Created 10 years ago by mistryb, updated 9 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: 17 093 times
Version: 1.1
Category: How-tos
Tags: CMenu

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

Created 9 years ago by Fábio Sales, updated 9 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: 22 254 times
Version: 1.1
Category: How-tos

Display Status image on CGridView column

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

How to display status image on admin gridview.

0 0
5 followers
Viewed: 21 125 times
Version: 1.1
Category: Tutorials

Using Yii Gallery Manager in your Yii 1.x application

Created 9 years ago by Trejder, updated 9 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: 15 302 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 9 years ago by Gerhard Liebenberg, updated 8 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: 13 208 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by Ankit Modi, updated 9 years ago by Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 19 039 times
Version: 1.1
Category: Tutorials

Console Based CAuthManager Helper

Created 8 years ago by bluyell, updated 8 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: 12 301 times
Version: 1.1
Category: How-tos

How to make customizable Db Table prefixes using ActiveRecord

Created 14 years ago by killermonk, updated 14 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: 23 889 times
Version: 1.1
Category: Tutorials
Tags:

How to have truly multilingual URLs

Created 8 years ago by oligalma, updated 2 years ago by oligalma.

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

0 0
3 followers
Viewed: 16 825 times
Version: 1.1
Category: How-tos

BUM - Add Additional Info to a User

Created 10 years ago by firefly, updated 9 years ago by Anibal.

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

0 0
4 followers
Viewed: 21 826 times
Version: 1.1
Category: How-tos

CMenu widget like bootstrap navbar with submenu

Created 8 years ago by kv4nt, updated 8 years ago by kv4nt.
0 0
1 follower
Viewed: 22 795 times
Version: 1.1
Category: Tutorials

Background task with Ajax

Created 8 years ago by Alexandre Rodichevski, updated 8 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: 25 474 times
Version: 1.1
Category: Tutorials

Named scope - Get orphan AR without losing primary key

Created 13 years ago by cma, updated 12 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: 9 334 times
Version: 1.1
Category: Tutorials
Tags:

Yiistrap TbHtml::navbarSearchForm

Created 10 years ago by Patrice, updated 9 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 18 306 times
Version: 1.1
Category: Tips

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

Created 7 years ago by Scott_Huang, updated 7 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: 22 583 times
Version: 1.1
Category: How-tos