Wiki articles

Showing 121-140 of 799 items.

Simple Multiple Environment Setup with Default Yii Installation

Created 5 years ago by Ibrar Turi, updated 5 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: 10 687 times
Version: 1.1
Category: How-tos

Syntax check

Created 8 years ago by Russell England, updated 8 years ago by Russell England.

This will syntax check each php file recursively from the current directory.

4 0
2 followers
Viewed: 10 730 times
Version: 1.1
Category: Tips
Tags: php, syntax

Attaching multiple event handlers to onBeginRequest

Created 5 years ago by Boaz, updated 5 years ago by CeBe.

There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

1 0
2 followers
Viewed: 10 741 times
Version: 1.1
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 5 years ago by nineinchnick, updated 5 years ago by CeBe.

This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.

1 0
3 followers
Viewed: 10 764 times
Version: all
Category: Others

History Autocomplete

Created 7 years ago by zaccaria, updated 7 years ago by Maurizio Domba Cerin.

In application development we often have to choose how to mange recurrent values.

3 0
9 followers
Viewed: 10 775 times
Version: 1.1
Category: How-tos

yii vim eclimd how it works

Created 8 years ago by RusAlex, updated 8 years ago by RusAlex.

I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.

8 0
8 followers
Viewed: 10 837 times
Version: 1.1
Category: How-tos
Tags: eclimd, vim, vimrc

Active Record snapshotting (Model data base history)

Created 4 years ago by Bizley, updated 4 years ago by Bizley.

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 10 842 times
Version: 1.1
Category: Tutorials

XSS safe model content

Created 9 years ago by phiras, updated 9 years ago by phiras.

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 10 862 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 6 years ago by Alexander Palamarchuk, updated 6 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: 10 963 times
Version: 1.1
Category: Tips
Tags: config

Understanding series articles

Created 7 years ago by GOsha, updated 7 years ago by GOsha.

Here are all wiki articles from "Understanding" series by Yii wiki contributors:

16 0
13 followers
Viewed: 10 990 times
Version: 1.1
Category: Tips

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

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

[pt-br] O guia de estudos do Yii para iniciantes

Created 6 years ago by Rodrigo Coelho, updated 6 years ago by Rodrigo Coelho.

You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

1 0
3 followers
Viewed: 11 001 times
Version: 1.1
Category: Tips
Tags:

Define general array and variable and call it to anywhere in application

Created 6 years ago by bhavesh vaghela, updated 6 years ago by Maurizio Domba Cerin.

Create param.php file in protected/config

Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active

1 4
3 followers
Viewed: 11 046 times
Version: 1.1
Category: Tutorials
Tags:

TimeZone dropDown

Created 6 years ago by Tibor Katelbach, updated 6 years ago by Maurizio Domba Cerin.

I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales

3 0
4 followers
Viewed: 11 164 times
Version: 1.1
Category: How-tos

using 'whenClient' for complex client side validation

Created 5 years ago by thiagoc7, updated 5 years ago by thiagoc7.

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

0 0
3 followers
Viewed: 11 198 times
Version: 2.0
Category: How-tos

Use phing to make Yii application "installable"

Created 7 years ago by sensorario, updated 7 years ago by Maurizio Domba Cerin.

To use this "how-to", you need to install phing in your machine.

7 0
10 followers
Viewed: 11 217 times
Version: 1.1
Category: How-tos
Tags: phing

BaseModuleAR class with MultiActiveRecord

Created 8 years ago by dinhtrung, updated 7 years ago by Gustavo.

MultiActiveRecord is an extension that add support for multiple database connection for your application.

2 0
0 follower
Viewed: 11 226 times
Version: 1.1
Category: Tips

Setting static modules' properties in config

Created 6 years ago by Alexander Palamarchuk, updated 6 years ago by Alexander Palamarchuk.

You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.

1 1
2 followers
Viewed: 11 231 times
Version: 1.1
Category: Tips
Tags: config, module

Safely checking if a model class exists (without exploding)

Created 5 years ago by Boaz, updated 5 years ago by CeBe.

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 11 237 times
Version: 1.1
Category: How-tos

Simple Google Maps object for use with ajax maps

Created 3 years ago by Chris Backhouse, updated 3 years ago by Chris Backhouse.

The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.

0 0
3 followers
Viewed: 11 260 times
Version: 2.0
Category: How-tos