Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii Framework and Android Application

I like to raise some questions regrading Yii framework and Android applications. I am going to build a mobile application in Android platform and implementing Yii framework as server side. I like to know how much Yii framework supports Android platform? Are Yii framework web services fully compatible with Android?

And, if can anyone suggest some tutorial or useful information, that will be very useful to me...

like image 944
ashutosh Avatar asked Jan 17 '12 09:01

ashutosh


People also ask

What is Yii framework used for?

Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. It enables maximum reusability in Web programming and can significantly accelerate your Web application development process.

Why Yii is the best framework?

Excellent Security. The security feature is one of the top reasons to choose Yii over other frameworks. This fast, robust framework helps you build a more secure web app and prevents your application from cyberattacks.

Is Yii an MVC framework?

Yii implements the model-view-controller (MVC) design pattern, which is widely adopted in Web programming. MVC aims to separate business logic from user interface considerations, so that developers can more easily change each part without affecting the other.

Is Yii framework good?

Yes, it is! Yii is a fast, secure, and efficient PHP framework. Flexible yet pragmatic. Works right out of the box.


2 Answers

Check out this: Yii REST API

like image 171
zuo Avatar answered Sep 18 '22 19:09

zuo


You can use JSON / XML to communicate your android application with the php yii framework by building a simple REST API.

In order to do use the REST API this, you need to send HTTP request (Get / Post) from Android application. Then perform your operation based upon the request and send again in JSON formate using php json_encode or XML if you preferred.

You can also perform it using google Gson. it will help you to create JSON from java object.

like image 20
Hasanavi Avatar answered Sep 22 '22 19:09

Hasanavi