Wiki

Articles in category "how-tos"X
Displaying 51-60 of 182 result(s).

Serial Numbers (item counts) in GridView

Created 7 months ago by PeRoChAkHow-tos2 comments – viewed 3,348 times – ( +1 )
Sometime we need to display numbers of items per page with their counting as a serial number.

A simple go back button widget

Created 7 months ago by CTalaHow-tos5 comments – viewed 6,807 times – ( +3 / -2 )
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

Using phpseclib with Yii

Created 7 months ago by nkdHow-tos6 comments – viewed 3,287 times – ( +2 )
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

Additional form data with XUpload

Created 7 months ago by AsgarothHow-tos5 comments – viewed 9,888 times – ( +5 )
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Javascript and AJAX with Yii

Created 7 months ago by François GannazHow-tos2 comments – viewed 31,346 times – ( +27 )
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

Elementary introduction to using jQuery ajax and the yii framework

Created 8 months ago by dhimesHow-tos4 comments – viewed 11,982 times – ( +5 )
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

Created 8 months ago by GiulianoHow-tos1 comment – viewed 3,953 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)

Created 8 months ago by BoazHow-tos2 comments – viewed 3,212 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

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

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 8 months ago by rAWTAZHow-tos0 comments – viewed 9,017 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.