Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 221-230 of 314 result(s).

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

Updated 2 years ago by GiulianoHow-tos2 comments – viewed 11,025 times – ( +8 ) – version 1.1
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 2 years ago by BoazHow-tos2 comments – viewed 8,494 times – ( +7 / -1 ) – version 1.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 2 years ago by BoazHow-tos10 comments – viewed 51,054 times – ( +5 / -3 ) – version 1.1
We start slowly and simple...

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Updated 2 years ago by rAWTAZHow-tos0 comments – viewed 22,900 times – ( +7 ) – version 1.1
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 2 years ago by VaibhavHow-tos1 comment – viewed 10,772 times – ( +6 ) – version 1.1
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 2 years ago by StagelineHow-tos17 comments – viewed 53,412 times – ( +26 / -4 ) – version 1.1
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 2 years ago by markuxHow-tos0 comments – viewed 4,559 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

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

Updated 2 years ago by Maurizio Domba CerinHow-tos20 comments – viewed 28,983 times – ( +20 / -6 ) – version 1.1
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 2 years ago by phazeiHow-tos14 comments – viewed 67,996 times – ( +28 ) – version 1.1
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

Extending CJuiDialog

Updated 2 years ago by Maurizio Domba CerinHow-tos0 comments – viewed 8,588 times – ( +2 / -2 ) – version 1.1
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: