Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 111-120 of 341 result(s).

Integrating Wordpress and Yii,Working Out The Details.

Created 2 years ago by drumaddictHow-tos4 comments – viewed 18,784 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

More security in your applications with Yii and PHPIDS

Created 4 years ago by Rafael GarciaHow-tos1 comment – viewed 12,494 times – ( +8 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

Turn Web HTML Into Newsletter

Created 2 years ago by yasenHow-tos1 comment – viewed 8,756 times – ( +8 ) – version 1.1
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 2 years ago by Maug LeeHow-tos2 comments – viewed 26,371 times – ( +8 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

How to setup RBAC with a php file

Created 5 years ago by bettorHow-tos17 comments – viewed 57,687 times – ( +26 / -5 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Updating fields on a form with Ajax and Json

Created 4 years ago by Russell EnglandHow-tos4 comments – viewed 49,745 times – ( +12 / -1 ) – version 1.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.

Model password confirmation field.

Created 3 years ago by twisted1919How-tos10 comments – viewed 57,972 times – ( +11 / -1 ) – version 1.1
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 5 months ago by robregonmHow-tos2 comments – viewed 3,311 times – ( +7 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

Multiple files uploader with CMultiFileUpload

Created about a year ago by InterboyHow-tos2 comments – viewed 253,474 times – ( +7 ) – version all
Today I will show you how to handle multiple file upload step by step.

Use phing to make Yii application "installable"

Created 3 years ago by sensorarioHow-tos3 comments – viewed 7,983 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing