Showing 1-20 of 652 items.

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

Created 17 years ago by qiang qiang, updated 17 years ago by mishhh mishhh. 1 comment

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
Viewed: 19 811 times
Version: 1.1
Category: Tutorials

    Building Page Specific Menus using CMenu

    Created 13 years ago by mistryb mistryb, updated 11 years ago by mistryb mistryb. 1 comment

    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
    Viewed: 19 933 times
    Version: 1.1
    Category: How-tos

    Using Yii Gallery Manager in your Yii 1.x application

    Created 11 years ago by Trejder Trejder, updated 11 years ago by Trejder Trejder. 0 comments

    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
    Viewed: 21 277 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 11 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 11 years ago by Gerhard Liebenberg Gerhard Liebenberg. 3 comments

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

    0 0
    4
    Viewed: 16 335 times
    Version: 1.1
    Category: How-tos

    Named scope - Get orphan AR without losing primary key

    Created 16 years ago by cma cma, updated 15 years ago by Steve Friedl Steve Friedl. 0 comments

    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
    Viewed: 12 223 times
    Version: 1.1
    Category: Tutorials

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

      Created 9 years ago by Scott_Huang Scott_Huang, updated 9 years ago by Scott_Huang Scott_Huang. 0 comments

      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
      Viewed: 28 519 times
      Version: 1.1
      Category: How-tos