augushong
augushong
it can be installed,but can not run. I run "sudo ss-qt" in konsole, it show error "ss-qt5: error while loading shared libraries: libbotan-2.so.8: cannot open shared object file: No such...
``` $relationTable = $input->getOption('relationTable'); $foreignKey = $input->getOption('foreignKey'); $primaryKey = $input->getOption('primaryKey'); $relationModelFilename = $input->getOption('relationModelFilename'); $relationOnlyFileds = $input->getOption('relationOnlyFileds'); $relationBindSelect = $input->getOption('relationBindSelect'); $force = $input->getOption('force'); $delete = $input->getOption('delete'); $relations = []; foreach ($relationTable...
``` /** * 默认URL解析 * @access public * @param string $url URL地址 * @return Dispatch */ public function url(string $url): Dispatch { if ($this->request->method() == 'OPTIONS') { // 自动响应options请求 return...
官网文档的写法如下: 后面称为:A用法。 ``` location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } ``` 实际上使用`!-f`会更好一些: 后面成为B用法。 ``` location / { if (!-f $request_filename) { rewrite ^(.*)$...
``` // 执行HTTP应用并响应 $http = (new App())->http; $response = $http->run(); // 一下两个步骤中如果出现错误,则不会产生错误日志。 $response->send(); $http->end($response); ```
之前的问题,想要临时切换引擎必须用下面的写法: ``` View::engine('php'); View::assign('test','test'); View::config([ 'view_suffix'=>'php' ]); return View::fetch(); ``` 以下写法有问题,下面的方法既无法修改配置,也无法传递test变量: ``` View::assign('test','test'); View::config([ 'view_suffix'=>'phps' ]); return View::engine('php')->fetch(); ```
验证器能否增加一个`获取字段`的方法,比如说`getFields()`; 比如下面这段代码中,我可以直接使用验证器的字段名,来过滤提交的信息,而不须要单独写一个过滤数组; ``` $validate = Validate::rule('nickname|昵称', ValidateRule::isRequire()->length('1,20')) ->rule('avatar|头像', ValidateRule::isRequire()) ->rule('sex|性别', ValidateRule::isRequire()->in([0, 1, 2])); $save_name = [ 'nickname', 'avatar', 'sex', ]; // $save_name = $validate->getFields(); $post_data = $request->only($save_name,'POST'); ```
PHP8.1的部分内置函数,只能接受整型参数,不支持浮点数,需要提前转换.