limingxinleo / x-phalcon-request
Phalcon Request Library
Installs: 2 819
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
- ext-phalcon: ^3.0
Requires (Dev)
- phalcon/dd: ^1.0
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-11-17 19:09:02 UTC
README
Phalcon Request Library
获取依赖注入服务
<?php use Phalcon\Di\FactoryDefault; use Xin\Phalcon\Http\Request; $di = new FactoryDefault(); $di->setShared('request', function () { return new Request(); });
获取上传的文件
<?php use Phalcon\Di; $di = Di::getDefault(); $file = $di->getShared('request')->getFile('file');