Showing 781-800 of 826 items.

Behaviors & events

Created 16 years ago by pestaa pestaa, updated 13 years ago by Gismo Gismo. 10 comments

These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

43 0
48
Viewed: 171 135 times
Version: 1.1
Category: Tutorials

    How to extend yiic shell commands

    Created 17 years ago by qiang qiang, updated 15 years ago by wei wei. 1 comment

    While yiic shell tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.

    2 0
    5
    Viewed: 37 433 times
    Version: 1.1
    Category: Tutorials

    Organize directories for applications with front-end and back-end

    Created 17 years ago by qiang qiang, updated 8 years ago by CeBe CeBe. 10 comments

    Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing direc...

    25 0
    34
    Viewed: 106 735 times
    Version: 1.1
    Category: Tutorials

      Manage application configuration in different modes

      Created 17 years ago by qiang qiang, updated 14 years ago by 张 迪 张 迪. 5 comments

      Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each...

      15 0
      15
      Viewed: 75 657 times
      Version: 1.1
      Category: Tutorials

      Use shortcut functions to reduce typing

      Created 17 years ago by qiang qiang, updated 14 years ago by Yang He Yang He. 8 comments

      Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate...

      46 0
      45
      Viewed: 75 757 times
      Version: 1.1
      Category: Tutorials