Skip to content

Instantly share code, notes, and snippets.

class GoController extends Controller {
{
public function actionGo(){
$criteria = new CDbCriteria;
$criteria->group = 'pinyinma';
$model = Hanzi::model()->findAllByAttributes(array(), $criteria);
$count =0;
$hanzi_array = array();
foreach ($model as $data) {
$count++;
@yexingzhe
yexingzhe / YiiTreeArray.php
Last active December 16, 2015 05:38
Yii Api Index Tree Array Yii Api 手册索引树数组
<?php
function API_URL($str){
return '<a href="'.$str.'.html">'.$str.'</a>';
}
$system_children = array(
array('text'=>API_URL('Yii'),),
array('text'=>API_URL('YiiBase'),),
);
$base_children = array(
@yexingzhe
yexingzhe / phpUnit-installing.md
Last active December 14, 2015 20:09
windows下安装phpUnit
@yexingzhe
yexingzhe / PHP HTML5 Web开发框架解决方案
Last active December 14, 2015 09:09
PHP HTML5 Web开发框架解决方案
DB ORM 框架:RedBeanPHP
后台编程框架:Yii PHP Framework + Yii-Booster Extension
前台编程框架:Bootstrap + icomoon font +jQuery UI for Bootstrap
前台编程目录:HTML5Boilerplate
后台编程目录:YiiBoilerplate
jQuery组件(除Yii-Booster提供之外)列表:jQplot