Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 201-210 of 297 result(s).

Using phpseclib with Yii

Updated about a year ago by nkdHow-tos8 comments – viewed 5,921 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

Elementary introduction to using jQuery ajax and the yii framework

Updated about a year ago by François GannazHow-tos4 comments – viewed 25,319 times – ( +6 ) – version 1.1
In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.
tags: AJAX

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

Updated about a year ago by GiulianoHow-tos2 comments – viewed 9,805 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 about a year ago by BoazHow-tos2 comments – viewed 7,535 times – ( +6 / -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 about a year ago by BoazHow-tos10 comments – viewed 43,725 times – ( +5 / -3 ) – version 1.1
We start slowly and simple...

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Updated about a year ago by rAWTAZHow-tos0 comments – viewed 20,339 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 about a year ago by VaibhavHow-tos1 comment – viewed 9,932 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 about a year ago by StagelineHow-tos17 comments – viewed 51,074 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 about a year ago by markuxHow-tos0 comments – viewed 4,241 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 about a year ago by Maurizio Domba CerinHow-tos18 comments – viewed 24,367 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.