Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 161-170 of 182 result(s).

Actions code reuse with CAction

Updated 2 years ago by Antonio RamirezHow-tos13 comments – viewed 17,342 times – ( +30 )
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

caching controllers with filters()

Updated 2 years ago by Maurizio DombaHow-tos0 comments – viewed 6,719 times – ( +2 )
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Updating fields on a form with Ajax and Json

Updated 2 years ago by Russell EnglandHow-tos4 comments – viewed 31,038 times – ( +12 / -1 )
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

CGridView and AjaxForm Connect

Updated 2 years ago by PinkBrainPlanHow-tos2 comments – viewed 13,982 times – ( +1 )
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

How to use Smarty renderer in Yii

Updated 2 years ago by dongbetaHow-tos2 comments – viewed 11,241 times – ( +3 )
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

Run an Yii Application inside an Wordpress page

Updated 2 years ago by Paul ApostolHow-tos3 comments – viewed 11,975 times – ( +12 )
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Include Yii framework in a Joomla module

Updated 2 years ago by AnupamHow-tos6 comments – viewed 13,047 times – ( +7 / -1 )
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.

Single sign on across multiple subdomains

Updated 2 years ago by ianarĂ©How-tos6 comments – viewed 15,602 times – ( +22 )
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

More security in your applications with Yii and PHPIDS

Updated 2 years ago by GustavoHow-tos1 comment – viewed 8,670 times – ( +7 )
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

Enforcing "You must agree" requirements in forms

Updated 2 years ago by Steve FriedlHow-tos2 comments – viewed 9,206 times – ( +26 )
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation