Wiki

Articles in category "how-tos"X
Displaying 181-190 of 314 result(s).

Hyphenation of routes in URL management

Created 2 years ago by qiangHow-tos6 comments – viewed 14,322 times – ( +18 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

simple CSV export

Created 2 years ago by bluyellHow-tos5 comments – viewed 14,505 times – ( +4 / -1 ) – version 1.1
tags: csv, excel, export

Serial Numbers (item counts) in GridView

Created 2 years ago by PeRoChAkHow-tos3 comments – viewed 6,791 times – ( +1 ) – version 1.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 2 years ago by CTalaHow-tos7 comments – viewed 14,958 times – ( +8 / -3 ) – version 1.1
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 2 years ago by nkdHow-tos8 comments – viewed 6,368 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

Additional form data with XUpload

Created 2 years ago by AsgarothHow-tos7 comments – viewed 26,748 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Javascript and AJAX with Yii

Created 2 years ago by Fran├žois GannazHow-tos2 comments – viewed 95,727 times – ( +40 ) – version 1.1
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 2 years ago by dhimesHow-tos4 comments – viewed 27,478 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

Created 2 years ago by GiulianoHow-tos2 comments – viewed 11,093 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)

Created 2 years ago by BoazHow-tos2 comments – viewed 8,556 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.