Wiki

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

HOW TO: Use token based authentication

Updated about a year ago by CeBeHow-tos2 comments – viewed 10,060 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,179 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 4,779 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 9,872 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,324 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 4,997 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 30,775 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

Configuring Yii to run on both Windows and OSX

Updated about a year ago by CeBeHow-tos2 comments – viewed 3,332 times – ( +2 ) – version 1.1
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
tags: config

Email by YiiMailer, Call Outlook, IMAP

Updated about a year ago by CeBeHow-tos0 comments – viewed 4,310 times – version 1.1
In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is **call outlook** as COM.

How to create a simple logout link in the view?

Updated about a year ago by CeBeHow-tos0 comments – viewed 7,970 times – ( +1 / -3 ) – version 1.1
Here you learn to create and set a simple ahref-link to logout the current user.
tags: Logout, Link, user, URL, views