1 Star 0 Fork 21

zmeyr / PPPHP

forked from kphcdr / PPPHP 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

速度 PPPHP的速度比所有的框架都要快,因为我们基本没有什么类库需要加载,如果你喜欢PPPHP,你可以在这基础上进行扩展,当然哥更希望你能把结果PUSH回来

架构 PPPHP的架构比所有的框架架构都要好,因为你只需要10分钟,就可以把整个工作流程看明白,然后你可以在这个架构上进行你自己的修改

前景 PPPHP的前景比所有的框架前景都要好,因为她具有最高的扩展性、稳定性、容错性

总结 通过以上三点你已经能够看到,PPPHP真的啥都没有,PPPHP面向的是初学者,但是她做为框架并不比其他框架优秀,她能做的只是让你更好,如果你真的更好了,希望你可以把你的修改PUSH回来,也可以直接和我联系

如何在控制器中加载模型

public function index()
{
	$m = $this->m('goods');#加载goods.php
	$m->get_goods();#使用对应的方法
}

如何在控制器中使用smarty

public function index()
{
    $data['some'] = array('some','data');
    $t->display('index.tpl',$data);#会加载控制器名称下的index.tpl
}

如何在模型中连接数据库

//select
public function lists()
{
	return $this->select('test','*',array('id'=>'123'));
}		
//insert
public function add($data)
{
	return $this->insert('tucao_m', $data);
}
//del
public function del()
{
	return $this->delete('tucao_m', array('name'=>'kph'));
}
//update
public function set()
{
	return $this->update('tucao_m',array('name'=>'1234'),array('name'=>'123'));
}

如何进行错误调试

public function index()
{
    debug('include');#查看文件包含情况
	debug('get');#查看get数据
}

项目说明:http://ppphp.kphcdr.com

The MIT License (MIT) Copyright (c) 2013 kphcdr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

PPPHP是一个面向初学者的框架,适合刚开始接触面向对象和想要了解框架运行流程的人,如果你有好的改进,请把结果PUSH回来 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zmeyr/PPPHP.git
git@gitee.com:zmeyr/PPPHP.git
zmeyr
PPPHP
PPPHP
master

搜索帮助

14c37bed 8189591 565d56ea 8189591