Wiki

Articles in category "how-tos"X
Displaying 171-180 of 301 result(s).

A simple go back button widget

Created about a year ago by CTalaHow-tos7 comments – viewed 13,800 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 about a year ago by nkdHow-tos8 comments – viewed 5,999 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 about a year ago by AsgarothHow-tos7 comments – viewed 23,826 times – ( +8 ) – 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 about a year ago by Fran├žois GannazHow-tos2 comments – viewed 88,780 times – ( +39 ) – 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 about a year ago by dhimesHow-tos4 comments – viewed 25,760 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 about a year ago by GiulianoHow-tos2 comments – viewed 10,062 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 about a year ago by BoazHow-tos2 comments – viewed 7,703 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

Created about a year ago by BoazHow-tos10 comments – viewed 45,412 times – ( +5 / -3 ) – version 1.1
We start slowly and simple...

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created about a year ago by rAWTAZHow-tos0 comments – viewed 20,870 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.

Integrating Wordpress and Yii,Working Out The Details.

Created about a year ago by drumaddictHow-tos4 comments – viewed 15,012 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress