<?php
class UserController extends Controller
{
/**
* Declares the 'ubeService' Web service action.
*/
public function actions()
{
return array(
'ubeService'=>array(
'class'=>'CWebServiceAction',
'classMap'=>array(
'User',
),
),
);
}
/**
* This is the default 'index' action that is invoked
* when an action is not explicitly requested by users.
*/
public function actionIndex()
{
$this->outputMessage("passport api.");
}
/**
* This is the action to handle external exceptions.
*/
public function actionError()
{
if($error=Yii::app()->errorHandler->error)
{
if(Yii::app()->request->isAjaxRequest) {
echo $e
yii远程的webservices类,实现shop与sns的单点登录 <?phpclass UserController extends Controller{ /** * Declares the 'ubeService' Web service action. */ public function actions() { return array(