Wiki

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

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

Updated 2 years ago by CeBeHow-tos5 comments – viewed 28,980 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 2 years ago by CeBeHow-tos9 comments – viewed 20,394 times – ( +10 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

How-To: Create Token Authenticated Web Services

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

HOW TO: Use token based authentication

Updated 2 years ago by CeBeHow-tos2 comments – viewed 16,597 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 2 years ago by CeBeHow-tos4 comments – viewed 15,948 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 2 years ago by CeBeHow-tos2 comments – viewed 6,772 times – ( +4 ) – 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 2 years ago by CeBeHow-tos1 comment – viewed 12,294 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 2 years ago by CeBeHow-tos0 comments – viewed 4,615 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 2 years ago by CeBeHow-tos1 comment – viewed 6,959 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 2 years ago by CeBeHow-tos1 comment – viewed 45,972 times – ( +3 ) – 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