msgbartop
PHP语言, PHP扩展, Zend引擎相关的研究,技术,新闻分享 – 左手代码 右手诗
msgbarbottom

12 May 11 Yaf-A PHP Framework Extension

如我在2011PHP技术峰会上介绍的Ap, 它的开源版本Yaf 2.0终于发布了.

后续我会建立一个专门的site来做文档, 等相关支持工作.. 现在就是先行放出源代码和手册.

手册地址:http://yaf.laruence.com/manual

源代码地址:http://code.google.com/p/yafphp/

如果有公司或者企业用户使用, 可以咨询我相关部署开发规范细则..

另外, 作为开源项目, Yaf非常渴望有兴趣的同学一起参与开发. 贡献自己的代码. 当然, 因为打算做一个Yaf的Site, 也需要一些前端的同学, 参与进来.. 先谢谢大家的热情了.

谢谢


分享到:



Related Posts:

Tags: , , ,

64 Responses to “Yaf-A PHP Framework Extension”

Pages: [2] 1 » Show All

  1. hay day unlimited coins and diamonds for android |

    Most young children enjoy gaming, actually children who
    are only preschoolers.

  2. 尜艾 |

    php7.1 包这个错误
    $ make && make install
    报错
    /bin/sh /software/php-yaf/libtool –mode=compile cc -I. -I/software/php-yaf -DPHP_ATOM_INC -I/software/php-yaf/include -I/software/php-yaf/main -I/software/php-yaf -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /software/php-yaf/views/yaf_view_simple.c -o views/yaf_view_simple.lo
    cc -I. -I/software/php-yaf -DPHP_ATOM_INC -I/software/php-yaf/include -I/software/php-yaf/main -I/software/php-yaf -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /software/php-yaf/views/yaf_view_simple.c -fPIC -DPIC -o views/.libs/yaf_view_simple.o
    /software/php-yaf/views/yaf_view_simple.c: In function ‘yaf_view_simple_extract’:
    /software/php-yaf/views/yaf_view_simple.c:110: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:110: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:129: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:129: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c: In function ‘yaf_view_simple_display’:
    /software/php-yaf/views/yaf_view_simple.c:260: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:261: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:268: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:281: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:291: error: ‘zend_executor_globals’ has no member named ‘scope’
    /software/php-yaf/views/yaf_view_simple.c:297: error: ‘zend_executor_globals’ has no member named ‘scope’
    make: *** [views/yaf_view_simple.lo] Error 1

  3. gongwen |

    http://www.yafphp.com
    这人站点打不开
    [yaf_config.lo] Error 1
    这个是怎么解决的?

  4. Emile |

    Genuinely no matter if someone doesn’t understand then its up to other visitors that they will help, so
    here it occurs.

  5. wangjstu |

    问题已经解决了:
    ······
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c:227: error: ?.S_CONSTANT_ARRAY?.undeclared (first use in this function)
    make: *** [yaf_config.lo] Error 1

    make中报错,已经安装了pcre-devel

    解决方法:
    参考论坛:http://www.yafphp.com/thread-2652-1-1.html

    ———–
    顶,努力学习

  6. wangjstu |

    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c -fPIC -DPIC -o .libs/yaf_config.o
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c: In function ?.af_config_zval_dtor?.
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c:89: error: ?.S_CONSTANT_ARRAY?.undeclared (first use in this function)
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c:89: error: (Each undeclared identifier is reported only once
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c:89: error: for each function it appears in.)
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c: In function ?.af_config_ini_zval_persistent?.
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c:189: error: ?.S_CONSTANT_ARRAY?.undeclared (first use in this function)
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c: In function ?.af_config_ini_zval_losable?.
    /home/wangjun/Downloads/yaf-2.2.9/yaf_config.c:227: error: ?.S_CONSTANT_ARRAY?.undeclared (first use in this function)
    make: *** [yaf_config.lo] Error 1

    make中报错,已经安装了pcre-devel

  7. 求chm版手册 |

    求yaf的chm版手册,这样不能上网也能查手册

  8. wander |

    Yaf和smarty3结合出现下面错误,要如何解决?

    Warning: Yaf_Loader::autoload(): Failed opening script D:\Apache2.2\htdocs\yaf/application\library\Smarty\Internal\TemplateCompilerBase.php: No such file or directory in D:\Apache2.2\htdocs\yaf\application\library\Smarty\sysplugins\smarty_internal_smartytemplatecompiler.php on line 23 Warning: Yaf_Loader::autoload(): Failed opening script D:\Apache2.2\htdocs\yaf/application\library\Smarty\Internal\Templatelexer.php: No such file or directory in D:\Apache2.2\htdocs\yaf\application\library\Smarty\sysplugins\smarty_internal_smartytemplatecompiler.php on line 95 Warning: Yaf_Loader::autoload(): Failed opening script D:\Apache2.2\htdocs\yaf/application\library\Smarty\Internal\Templateparser.php: No such file or directory in D:\Apache2.2\htdocs\yaf\application\library\Smarty\sysplugins\smarty_internal_smartytemplatecompiler.php on line 96 Warning: Yaf_Loader::autoload(): Failed opening script D:\Apache2.2\htdocs\yaf/application\library\Smarty\Internal\CompileBase.php: No such file or directory in D:\Apache2.2\htdocs\yaf\application\library\Smarty\sysplugins\smarty_internal_compile_foreach.php on line 18 Warning: Yaf_Loader::autoload(): Failed opening script D:\Apache2.2\htdocs\yaf/application\library\Smarty\Internal\Write\File.php: No such file or directory in D:\Apache2.2\htdocs\yaf\application\library\Smarty\sysplugins\smarty_internal_template.php on line 201

  9. 雪候鸟 |

    @web of course won’t, feel free to use them.

  10. web |

    Hello just stumbled upon your blog from Google after I entered in,
    “Yaf-A PHP Framework Extension | 风雪之隅” or
    perhaps something similar (can’t quite remember exactly). Anyways, I’m pleased I found it simply because your subject material
    is exactly what I’m searching for (writing a college paper) and I hope you don’t mind if I collect some material from here and I will of course credit you as
    the reference. Many thanks.

    My homepage :: web

  11. lxh |

    遇到个很奇怪的问题,我在windows下把程序都调整好了
    Version 2.1.18
    然后放到linux下 Version 2.2.7-dev,就出了个很诡异的问题。
    我用Action类继承Yaf_Controller_Abstract 然后控制器里面 IndexController extends Action,然后将一些初始化的函数 写在了Action里面,发现里面的函数会很奇怪的调用两次。
    这些函数都在Action类的 init()方法中调用,最开始以为是那些方法前缀是init造成的,去掉后依旧会调用两次。
    诺诺的问一句Yaf框架有专门的交流群么?求加入。QQ:330318747求指导

  12. 刘纪君 |

    Yaf和smarty3结合的结果就是一些文件找不到了,这里我提供了三种方式来解决:
    http://www.cnblogs.com/gongchang/archive/2012/11/04/2754028.html

  13. hidoos |

    不懂php,但是可以做为前端参与进来吗?

  14. chickenzzz |

    我来为手册做些小更正:
    1)http://yaf.laruence.com/manual/yaf.incli.times.html这页

    <?php
    $request = new Yaf_Request_Simple();
    print_r($requst);
    print_r($requst);应改为 print_r($request);

    2)同上一页的例9.3
    $ php request.php "request_uir=/index/hello"
    后面的参数应该为 "request_uri=/index/hello"

    3)http://yaf.laruence.com/manual/tutorial.firstpage.html#tutorial.rewrite
    关于nginx的配置,原来的是
    server {
    listen ****;
    server_name domain.com;
    root document_root;
    index index.php index.html index.htm;

    if (!-e $request_filename) {
    rewrite ^/(.*) /index.php/$1 last;
    }
    }
    这个除了index controller运行得很好,其它都报500 Internal Server Error
    改为下面的,问题解决
    if (!-e $request_filename) {
    rewrite ^.*$ /index.php last;
    break;
    }

    花了大半天的时间来调错,真是悲剧的日子。还得提一下,YAF_Loader::autoLoad()找不到script不要报warnning了吧……和smarty3结合的结果也是悲剧一个。

  15. 雪候鸟 |

    @zwp http://code.google.com/p/yafphp/downloads/list 这里有个例子, 还有这里有个论坛, http://www.yafphp.com

Pages: [2] 1 » Show All

Leave a Reply

*