ezphp开发框架
闲来无事,自己写了个mvc框架,发给大家共享一下,多提宝贵意见. index.php/controller/actiondefault index.php/Index/index
IndexAction/index 好多报错啊
直接运行index时报错
Warning: include_once(zendAction.php) : failed to open stream: No such file or directory in F:\AppServ\www\test\ezphp\lib\core\ClassSupport.php on line 118
然后我在index.php中加上两个常量,把loader类第八行修改了一下
set_include_path(get_include_path().PATH_SEPARATOR.$dirname.PATH_SEPARATOR.$dirname.'\\vendors'.PATH_SEPARATOR.$dirname.'\core'.PATH_SEPARATOR.$dirname.'\plugins'.PATH_SEPARATOR.APPPATH.'\controllers'.PATH_SEPARATOR.APPPATH.'\models');
然后可以调用action类了,但是调用zendaction是报错
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in F:\AppServ\www\test\ezphp\lib\vendors\Zend\Db\Adapter\Pdo\Abstract.php on line 104
调用xingaction还是报错
Fatal error: Unsupported operand types in F:\AppServ\www\test\ezphp\lib\vendors\template\XingTemplate\core.xingTemplate_class.php on line 34
学习学习还可以吧 是这个需要pecl支持吗?要求太苛刻了吧 xingtemplate这个适配器写的比较粗糙 zend db没错(smarty模板写错啦) xingtemplate已经拿掉啦 修改了部门错误,加了个钩子 加油!继续干下去了 :handshake 已更新 个人认为,创新固然是好,但是再没有理解前面人所作之事,达到和前面人一个差不多的水平上,这种创新还是留给自己吧,分享出来大家看看就好,千万不要再搞出一个新框架了~百花争艳,未必花花香~
建议楼主真的有能力的话,去参与其他优秀框架开发维护中去~
页:
[1]
2