Skip to content

Commit

Permalink
v5.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
willphp committed Oct 24, 2024
1 parent e1335f4 commit b9a2ea4
Show file tree
Hide file tree
Showing 85 changed files with 810 additions and 706 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ APHP框架(原WillPHP框架)是一个MVC超轻量级PHP8开发框架

### 框架特点

- 大小200KB+,新手快速入门
- ORM,数据交互简单
- 极简200KB+,新手快速入门
- ORM数据交互,简单方便
- 模型可自动验证,处理,过滤数据
- 超简单模板标签,自由定制

### 环境要求

- PHP 7.4~PHP 8.3
- MySQL5.6~8.0

### 开发手册
### 开发指南

内置文档:查看`_doc/aphp`目录
内置文档:查看`_doc`目录

在线手册[https://www.aphp.top/md_1.html](https://www.aphp.top/md_1.html)
在线文档[https://doc.aphp.top](https://doc.aphp.top)

### 更新日志

Expand Down
5 changes: 3 additions & 2 deletions _doc/aphp/_01_about.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ APHP框架(原WillPHP框架)是一个MVC超轻量级PHP8开发框架

### 框架特点

- 大小200KB+,新手快速入门
- ORM,数据交互简单
- 极简200KB+,新手快速入门
- ORM数据交互,简单方便
- 模型可自动验证,处理,过滤数据
- 超简单模板标签,自由定制

### 相关链接

Expand Down
6 changes: 6 additions & 0 deletions _doc/aphp/_02_update.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## 更新日志

#### APHPv5.2.5 2024-10-20

- 新增:email.smtp扩展
- 新增:扩展调用函数extend(),如:extend('email.smtp')->send(...)
- 新增:db()查询支持cahce($expire=0)缓存,如:db('news')->cahce(10)->find()

#### APHPv5.2.3 2024-10-05

- 模板:支持复杂变量输出,如:{:echo($a\[$b\]\['c'])}
Expand Down
2 changes: 2 additions & 0 deletions _doc/aphp/_04_dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ www WEB部署目录
│ ├─cookie.php Cookie
│ ├─database.php 数据库
│ ├─debug_bar.php 调试栏
│ ├─email.php 邮件
│ ├─filter.php 自动过滤
│ ├─middleware.php 中间件
│ ├─pagination.php 分页
Expand All @@ -34,6 +35,7 @@ www WEB部署目录
│ ├─session.php Session
│ ├─site.php 网站
│ ├─template.php 模板引擎
│ ├─upload.php 上传
│ ├─validate.php 验证规则
│ └─view.php 视图
Expand Down
20 changes: 11 additions & 9 deletions _doc/aphp/_07_view.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ Powered By __POWERED__ 主题:__THEME__
{if $id==1:} id=1 {else:} id<>1 {/if}
{if $id==1:} id=1 {elseif $id==2:} id=2 {else:} id<>1|2 {/if}
{php $none=''}
{empty $none:} none {/empty}
{empty $none:}为空{else:}不为空{/empty}
{!empty $none:}不为空{/empty}
```

#### 偱环语句
Expand Down Expand Up @@ -173,15 +174,15 @@ __#POWERED#__ //输出:__POWERED__
数据为空:
{empty $list->toArray():}none{/empty}
偱环输出:
{foreach $list as $vo}
{loop $list as $vo}
{$vo.id}.{$vo.cname}
{/foreach}
分页html:{$list->pageLink()}
总记录数:{$list->pageAttr('total')}
当前页码:{$list->pageAttr('current')}
开始数:{$list->pageAttr('offset')}
每页记录数:{$list->pageAttr('page_size')}
总页数:{$list->pageAttr('page_count')}
{/loop}
分页html:{$list->links()}
总记录数:{$list->attr('total')}
当前页码:{$list->attr('current')}
开始数:{$list->attr('offset')}
每页记录数:{$list->attr('page_size')}
总页数:{$list->attr('page_count')}
```

#### 获取配置
Expand All @@ -201,6 +202,7 @@ __#POWERED#__ //输出:__POWERED__
```
{php $vo['ctime']=time()}
{:date('Y-m-d',$vo['ctime'])}
{$vo.ctime|date='Y-m-d'}
```

#### 字符串截取
Expand Down
Loading

0 comments on commit b9a2ea4

Please sign in to comment.