/** * --------------------------------------------------------------------------------------------- * > 接口说明:头像列表接口 * <code> * URL地址:/image/faceList * 提交方式:GET * </code> * --------------------------------------------------------------------------------------------- * @title 头像列表接口 * @action /image/faceList * @method get */ public function faceListAction() { // valid face ids $faceIdArr = range(0, 14); // get face images $faceList = array(); foreach ($faceIdArr as $faceId) { $faceList[] = Demos_Util_Image::getFaceImage($faceId); } $this->render('10000', 'Get face list ok', array('Image.list' => $faceList)); }