github下载:https://github.com/phillipsdata/minphp
来源:http://my.oschina.net/rain21/blog/477931
立即学习“PHP免费学习笔记(深入)”;
结构:
采用硬件加速的世界杯足球射门游戏JS特效代码,很不错的JS游戏特效,硬件加速玩起来不卡顿,JS基于zepto,轻量级JS框架,演示DEMO需要手机触摸屏才能射门,否则PC端是无效果的。
/app /controllers - where all controllers are to be placed /models - where all models are to be placed /views - where all views are to be placed /default - a collection of related display components /css /images /javascript/cache - where cached views are stored (must be writable to use)/components - where components are placed/config - where configuration files are to be stored/helpers - where all helpers are located/language - each language has its own directory in here /en_us - the default language directory/lib - where all core minPHP files are located/plugins - where all minPHP plugins are stored/vendors - where vendor code is placed (i.e. third party libraries)
立即学习“PHP免费学习笔记(深入)”;
数据库查询:
首先配置config/database.php
<?php/** * @package minPHP * @subpackage minPHP.app.controllers */class Main extends AppController { //index public function index(){ $user=new Record(); //$rs=$user->select()->from("user")->where("id", "=", 1)->numResults(); $rs=$user->select()->from("user")->fetchAll(); print_r($rs); } //show public function show(){ echo date('Y-m-d H:i:s',time()); return false; }}?>










