Wiki articles

Showing 121-140 of 651 items.

Simple Multiple Environment Setup with Default Yii Installation

Created 11 years ago by Ibrar Turi, updated 11 years ago by CeBe.

After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

2 0
8 followers
Viewed: 18 258 times
Version: 1.1
Category: How-tos

Expert's model generation with Gii

Created 10 years ago by le_top, updated 10 years ago by le_top.

Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

1 0
2 followers
Viewed: 18 269 times
Version: 1.1
Category: Tips

Upload Files to Rackspace Cloud Files CDN

Created 12 years ago by StephenMiracle, updated 12 years ago by StephenMiracle.

** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

2 0
3 followers
Viewed: 18 391 times
Version: 1.1
Category: Tutorials

Implementing a Flat User Access System

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

This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

6 0
7 followers
Viewed: 18 591 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

Created 11 years ago by Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 18 640 times
Version: 1.1
Category: How-tos

Fixing extensions without modifying their code

Created 12 years ago by schmunk, updated 12 years ago by schmunk.

If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

6 0
10 followers
Viewed: 18 646 times
Version: 1.1
Category: Tips

Using MBMenu and Rights to automatically create menu item for your modules

Created 14 years ago by dinhtrung, updated 14 years ago by dinhtrung.

Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

1 1
2 followers
Viewed: 18 713 times
Version: 1.1
Category: Tips

caching controllers with filters()

Created 14 years ago by RusAlex, updated 14 years ago by Maurizio Domba Cerin.

Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

2 0
8 followers
Viewed: 18 714 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

Created 10 years ago by darkheir, updated 10 years ago by darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 18 842 times
Version: 1.1
Category: How-tos

Making friends' configs, DB credentials and paths with version control

Created 12 years ago by Alexander Palamarchuk, updated 12 years ago by ajsharma.

In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test s...

1 1
4 followers
Viewed: 18 964 times
Version: 1.1
Category: Tips
Tags: config

How to make use of a fragment cache

Created 16 years ago by dalip, updated 14 years ago by wei.
1 0
2 followers
Viewed: 18 980 times
Version: 1.1
Category: Tutorials

Integrating FirePHP

Created 14 years ago by ricardograna, updated 14 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 19 006 times
Version: 1.1
Category: Tutorials
Tags:

Como trasponer una lista creada con CHtml::checkBoxList

Created 13 years ago by rdjteam, updated 13 years ago by rdjteam.

En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

2 0
4 followers
Viewed: 19 054 times
Version: 1.1
Category: Tips

Serial Numbers (item counts) in GridView

Created 12 years ago by PeRoChAk, updated 12 years ago by Maurizio Domba Cerin.

Sometime we need to display numbers of items per page with their counting as a serial number.

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

ChromePHP for Yii

Created 14 years ago by imehesz, updated 14 years ago by imehesz.

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 19 107 times
Version: 1.1
Category: Tips

Yii behind a reverse proxy, SSL support and correct IP logging

Created 12 years ago by mrkmg, updated 12 years ago by mrkmg.

If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

0 0
2 followers
Viewed: 19 330 times
Version: 1.1
Category: Tips

How to have truly multilingual URLs

Created 9 years ago by oligalma, updated 3 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: 19 335 times
Version: 1.1
Category: How-tos

Extending CJuiDialog

Created 12 years ago by dstudio, updated 12 years ago by Maurizio Domba Cerin.

Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

1 2
2 followers
Viewed: 19 363 times
Version: 1.1
Category: How-tos

Multi Data Provider

Created 11 years ago by Sharon Lavie, updated 9 years ago by Sharon Lavie.

Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

1 0
4 followers
Viewed: 19 409 times
Version: 1.1
Category: Tips

ClientValidation for files (modern browsers)

Created 11 years ago by Kostas Apazidis (KonApaz), updated 11 years ago by CeBe.

There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

2 0
6 followers
Viewed: 19 561 times
Version: 1.1
Category: How-tos