Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 131-140 of 182 result(s).

Client-side form validation using Twitter Bootstrap's Popovers

Created 26 days ago by TrejderHow-tos0 comments – viewed 6,345 times – ( +3 )
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.

defaultScope

Created 23 days ago by Gerhard LiebenbergHow-tos4 comments – viewed 1,841 times – ( +3 )
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

How to render a view in Fancybox using ajax

Created 10 months ago by rix.rix.How-tos1 comment – viewed 10,039 times – ( +5 / -1 )
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

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,256 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.

How to write a simple application component

Created 2 years ago by zaccariaHow-tos4 comments – viewed 19,979 times – ( +12 / -7 )
An application component is a confortable way for share information among all component of the application

Install, update and use Yii with WAMP server

Created 7 months ago by mrsHow-tos4 comments – viewed 8,635 times – ( +4 / -1 )
Here I am describing how you can install and update Yii in WAMP sever.

Create sitemap.xml file dynamically on root folder with one hit

Created 6 months ago by kiran sharmaHow-tos1 comment – viewed 3,910 times – ( +4 / -1 )
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

Creating and updating model and its related models in one form, inc. image

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

Publish yii webapp using Git push

Created 10 months ago by rootbearHow-tos6 comments – viewed 3,613 times – ( +2 )
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Using phpseclib with Yii

Created 7 months ago by nkdHow-tos6 comments – viewed 3,314 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