Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 111-120 of 322 result(s).

Update a part of content using AJAX when select a GridView row

Updated 8 months ago by CeBeHow-tos2 comments – viewed 12,416 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

ClientValidation for files (modern browsers)

Updated 8 months ago by CeBeHow-tos0 comments – viewed 5,839 times – ( +4 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

Using Apostle.io to send formatted, trackable emails from Yii applications

Updated 8 months ago by CeBeHow-tos0 comments – viewed 3,060 times – ( +1 ) – version 1.1
Apostle provides a nifty facility for sending app-generated, transactional emails from your application including Wordpress-like mail formatting and full tracking (delivery, opening, clicking etc.) of all emails sent. No need to set up email facilities on your app server!
tags: email, mail

Take more control of CGridview and model searching (related model or another controller)

Updated 8 months ago by CeBeHow-tos5 comments – viewed 19,178 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

A Multi-Tenant Strategy using Yii and MySQL

Updated 8 months ago by CeBeHow-tos8 comments – viewed 10,956 times – ( +8 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

How-To: Create Token Authenticated Web Services

Updated 8 months ago by CeBeHow-tos1 comment – viewed 12,634 times – ( +8 ) – version 1.1
This article is about implementing authentication to Yii based web services.

HOW TO: Use token based authentication

Updated 8 months ago by CeBeHow-tos0 comments – viewed 7,910 times – ( +4 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

Simple Web APIs for your Yii App

Updated 8 months ago by CeBeHow-tos4 comments – viewed 8,358 times – ( +2 / -2 ) – version 1.1
Its very common now-a-days to have Mobile app for web apps. For Mobile apps we need web APIs to fetch data or even post/update on web. We found a very simple method to make such interface. Mobile App can call plain get or post request and receive data back in JSON format. JSON is relatively easy for mobile app to handle while plain standard GET/POST request for easy for Web server to handle. This mixed approach saves lot of time on server side. We not really need to handle actual REST requests and still be able to exchange data between web and mobiles or ajax java-scripts or even node.js.
tags: API, JSON

Simple Multiple Environment Setup with Default Yii Installation

Updated 8 months ago by CeBeHow-tos2 comments – viewed 4,205 times – ( +3 ) – version 1.1
After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

How to create Module based Login

Updated 8 months ago by CeBeHow-tos1 comment – viewed 8,718 times – ( +3 ) – version 1.1
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.