Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 141-150 of 341 result(s).

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

Updated about a year ago by CeBeHow-tos5 comments – viewed 23,482 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 about a year ago by CeBeHow-tos8 comments – viewed 14,537 times – ( +9 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

How-To: Create Token Authenticated Web Services

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

HOW TO: Use token based authentication

Updated about a year ago by CeBeHow-tos2 comments – viewed 10,989 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 about a year ago by CeBeHow-tos4 comments – viewed 10,941 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 about a year ago by CeBeHow-tos2 comments – viewed 5,065 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 about a year ago by CeBeHow-tos1 comment – viewed 10,274 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.

How to implement magento cron on yii

Updated about a year ago by CeBeHow-tos0 comments – viewed 3,509 times – version 1.1
Hi Friends, First I would to say sorry but I am not very familiar to magento so after a 1 week spend I will implement the magneto cron functionality on yii I hope it's may be some helpful.

How to apply a layout to an AJAX update

Updated about a year ago by CeBeHow-tos1 comment – viewed 5,268 times – ( +1 ) – version 1.1
The template system in Yii is quite flexible. By default you have three layers of content:
tags: AJAX, views

Upload image and content using AJAX and Store it in different table

Updated about a year ago by CeBeHow-tos1 comment – viewed 33,242 times – ( +2 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables