Wiki

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

URL management for Websites with secure and nonsecure pages

Updated 8 months ago by qiangHow-tos5 comments – viewed 7,267 times – ( +14 )
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Hyphenation of routes in URL management

Updated 8 months ago by qiangHow-tos4 comments – viewed 6,903 times – ( +16 )
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Javascript and AJAX with Yii

Updated 8 months ago by bennounaHow-tos2 comments – viewed 35,909 times – ( +28 )
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

Using filters with CGridView and CArrayDataProvider

Updated 8 months ago by marcovtwoutHow-tos12 comments – viewed 25,743 times – ( +12 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Serial Numbers (item counts) in GridView

Updated 8 months ago by Maurizio DombaHow-tos2 comments – viewed 3,553 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

Updated 8 months ago by bennounaHow-tos5 comments – viewed 7,340 times – ( +4 / -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

Updated 8 months ago by nkdHow-tos6 comments – viewed 3,596 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

Elementary introduction to using jQuery ajax and the yii framework

Updated 9 months ago by François GannazHow-tos4 comments – viewed 13,195 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

Updated 9 months ago by GiulianoHow-tos1 comment – viewed 4,314 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 9 months ago by BoazHow-tos2 comments – viewed 3,596 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.