Wiki

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

HOW TO: Use token based authentication

Updated 2 years ago by CeBeHow-tos2 comments – viewed 15,841 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,301 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,616 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,053 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,489 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,736 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 44,557 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

Configuring Yii to run on both Windows and OSX

Updated 2 years ago by CeBeHow-tos2 comments – viewed 4,667 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 2 years ago by CeBeHow-tos0 comments – viewed 6,695 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 2 years ago by CeBeHow-tos0 comments – viewed 13,089 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