Git Product home page Git Product logo

boaphp's People

Contributors

poetbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mehmetpek

boaphp's Issues

关于JSON的输出配置

image

msg:"名称只能包含字母和数字;
@"

data已经说明了报错的字段名,msg怎么设置让他精确的说明错误内容呢,不要带乱七八糟的标点符号

$this->request的使用问题

之前 $this->user 被占用了验证

后面传递了一个user的参数

我使用$this->request->v('user') 来接收,结果还是$this->user的信息呢

我使用
$this->request = boa::request();
echo $this->request->v('user');

仍然还是$this->user的数据 这里应该怎么用呢,是我理解的不对吗?

自定义了一个验证方法,语言包的识别ID怎么配

我知道 验证器代码解构是这样的

目录
mod\home\validater\checker.php

增加代码
public function is_date($v){
$res = preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/', $v);
return $res ? 0 : 947;
}

947错误提示文字报错了,这个947识别文字加到哪里?

mod\home\language***.php
这个目录下方的文件和代码解构是什么?

这个怎么用呢?

关于上传upload方法

默认上传路径为

BS_WWW .'file/'

上传后根据年/月/日来生成文件夹并保存到目录中

1、提交过来的图片是jpg格式,为什么保存后的后缀名是PNG呢?应该是上传文件是jpg就附带jpg,是zip就附带zip的后缀名
2、自定义名字后,文件居然保存到 BS_WWW .'file/' 根目录了,没有年月日的文件夹了,既然没有配置生成目录就应该依照默认生成路径规则呀
3、自定义名字后,文件的后缀名丢失,这里应该自定义的是文件名名称,后缀名还要调用处理就太麻烦了,。

关于数据库配置参数的缺省值问题

我是个新手,我设置了

'DATABASE' => [
'host' => '127.0.0.1' ,
'user' => 'root' ,
'pass' => '123456' ,
'name' => 'shop'
]

居然错误的配置,,

必须要带上两个参数

'DATABASE' => [
'host' => '192.168.31.251' ,
'user' => 'root' ,
'pass' => '123456' ,
'name' => 'shop',
'prefix' => '',
'charset' => 'utf8',
],

配上'prefix' => '', 'charset' => 'utf8' 才正常

这个应该做到第一种配置就能用才好吧。

关于自动验证器

如我的请求为 :

创建用户
home/user/add

编辑用户
home/user/set

那么我就要在
variable文件夹中建立两个文件

/user/add.php
/user/set.php

这两个都对username的账号进行自动验证,这样就有了很多的重复代码

那么能不能有一个通用的
比如在variable/user/ 建立一个 index.php或者 common.php写一个验证规则,这两个动作都能生效呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.