Showing 21-40 of 826 items.

How to create a breadcrumb widget

Created 17 years ago by knut knut, updated 14 years ago by Yang He Yang He. 4 comments

Here's a simple way to create a breadcrumb widget to be used in your templates. The idea is just to isolate how the breadcrumb is generated based on an array of crumbs.

10 0
11
Viewed: 89 962 times
Version: 1.1
Category: Tutorials

    Using CAutoComplete to display one value and submit another

    Created 17 years ago by luoshiben luoshiben, updated 14 years ago by mohammad sharif ahrari mohammad sharif ahrari. 5 comments

    Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...

    7 3
    11
    Viewed: 74 085 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 787 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 689 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 775 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 439 times
        Version: 1.1
        Category: Tutorials