yantze / yaf Goto Github PK
View Code? Open in Web Editor NEW使用 yaf 做的购物网站 yar+msgpack+opcache for mvc+orm to api
License: MIT License
使用 yaf 做的购物网站 yar+msgpack+opcache for mvc+orm to api
License: MIT License
有意者请加QQ群:200600288
请问下,您上传的这份代码是否有问题?
为什么没有module目录,并且看您也定义了两个module(index, admin).
我把环境搭好后,所有页面使用默认路由方式都最后到了indexController的indexAction了,不知道是为什么?
访问 domain.com/item/test,打印出$dispatcher, 部分结果如下:
object(Yaf_Router)[5]
protected '_routes' =>
array
'_default' =>
object(Yaf_Route_Static)[6]
...
'supervar' =>
object(Yaf_Route_Supervar)[10]
...
'simple' =>
object(Yaf_Route_Simple)[11]
...
protected '_current' => null
protected '_view' => null
protected '_request' =>
object(Yaf_Request_Http)[3]
public 'module' => null
public 'controller' => null
public 'action' => null
public 'method' => string 'GET' (length=3)
protected 'params' =>
array
empty
protected 'language' => null
protected '_exception' => null
protected '_base_uri' => string '/index.php' (length=10)
protected 'uri' => string '/index.php' (length=10)
protected 'dispatched' => boolean false
protected 'routed' => boolean false
Warning: Yaf_Loader::autoload(): Failed opening script /var/www/code/yaf/public/..//application/library/memcached.php: No such file or directory in /var/www/code/yaf/application/Bootstrap.php on line 64
Fatal error: Class 'memcached' not found in /var/www/code/yaf/application/Bootstrap.php on line 64????
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.