Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 81-90 of 182 result(s).

How to hide index.php on Microsoft Windows Server with IIS7

Updated 8 months ago by GiulianoHow-tos1 comment – viewed 3,971 times – ( +7 )
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Updated 8 months ago by BoazHow-tos2 comments – viewed 3,232 times – ( +5 / -1 )
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Creating and updating model and its related models in one form, inc. image

Updated 8 months ago by BoazHow-tos8 comments – viewed 14,184 times – ( +5 / -2 )
We start slowly and simple...

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Updated 8 months ago by rAWTAZHow-tos0 comments – viewed 9,040 times – ( +5 )
This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

YouTube API v2.0 – Browser-based Uploading

Updated 8 months ago by VaibhavHow-tos1 comment – viewed 4,740 times – ( +5 )
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

How to setup RBAC with a php file

Updated 8 months ago by StagelineHow-tos12 comments – viewed 38,168 times – ( +24 / -4 )
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Entire Messages into javascript object

Updated 8 months ago by markuxHow-tos0 comments – viewed 2,513 times – ( +1 )
I needed all messages with their translation into javascript. This is my solution:

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Updated 9 months ago by fr0d0zHow-tos12 comments – viewed 13,142 times – ( +18 )
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

How to use Multiple instances of the same model in the same form

Updated 9 months ago by Maurizio DombaHow-tos15 comments – viewed 10,105 times – ( +16 / -2 )
When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update.

Multiple-database support in Yii

Updated 9 months ago by phazeiHow-tos8 comments – viewed 35,770 times – ( +19 )
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database