minPHP-轻量级的PHP框架
程序员文章站
2022-04-21 19:25:47
...
github下载:https://github.com/phillipsdata/minphp
来源:http://my.oschina.net/rain21/blog/477931
结构:
/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)
数据库查询:
首先配置config/database.php
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; }}?>
上一篇: 刚学PHP,想有关问题一下界面怎么设计呀?各位勿见笑
下一篇: Laravel 5中数据库迁移的学习
推荐阅读
-
php开发框架有哪些(javascript和java的区别)
-
PHP的Yii框架入门使用教程
-
php后台开发框架(php后端和java后端的区别)
-
php ci框架中加载css和js文件失败的解决方法
-
在Mac OS上搭建PHP的Yii框架及相关测试环境
-
php 实现简单的登录功能示例【基于thinkPHP框架】
-
EpiiAdmin 开源的php交互性管理后台框架, 让复杂的交互变得更简单!Phper快速搭建交互性平台的开发框架,基于Thinkphp5.1+Adminlte3.0+Require.js。
-
PHP实现一个轻量级容器的方法
-
php轻量级的性能分析工具xhprof的安装使用
-
PHP开发框架kohana3.3.1在nginx下的伪静态设置例子