Sorted by date (updated)X
Displaying 501-510 of 779 result(s).

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

Updated 4 years ago by BoazHow-tos2 comments – viewed 13,337 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.

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Updated 4 years ago by yJeroenTutorials8 comments – viewed 56,578 times – ( +21 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

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

Updated 4 years ago by BoazHow-tos11 comments – viewed 84,193 times – ( +6 / -3 ) – version 1.1
We start slowly and simple...

Beginner / Intro Tutorials (please add to / update this list)

Updated 4 years ago by Gerhard LiebenbergTutorials1 comment – viewed 41,323 times – ( +5 ) – version 1.1
This is a central location to collect links to "Getting Started" documentation beyond the blog demo and Creating First Yii Application. Please help the community by adding general, introductory links and descriptions to this page.

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Updated 4 years ago by rAWTAZHow-tos0 comments – viewed 35,139 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 4 years ago by VaibhavHow-tos1 comment – viewed 14,696 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 4 years ago by StagelineHow-tos17 comments – viewed 62,758 times – ( +26 / -5 ) – 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.

Create Yii Project In Cloud9

Updated 4 years ago by BenTutorials5 comments – viewed 24,857 times – ( +3 ) – version 1.1
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

Simple RBAC

Updated 4 years ago by StagelineTutorials17 comments – viewed 87,006 times – ( +50 / -3 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Updated 4 years ago by bluezedTutorials5 comments – viewed 30,071 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried: