Fetch the repository succeeded.
使用Yaf实现的一个影视信息查询Demo,可以查询豆瓣影视条目、豆瓣全部演职员、IMDb影视条目、IMDb全部演职员等。(Yaf是一个C语言编写的PHP框架)
通过本Demo,可以对Yaf框架整体提高认知,熟悉以下知识点:
yaf.environ = "product"
yaf.cache_config = 1
yaf.use_namespace = On
yaf.use_spl_autoload = On
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php/$1 last;
}
}
+ public
|- index.php //入口文件
|- .htaccess //重写规则
|+ css
|+ img
|+ js
+ conf
|- application.ini //配置文件
|- route.php //路由协议
+ application
|+ controllers
|- Index.php //默认控制器
|+ views
|+ index //控制器
|- index.phtml //默认视图
|+ modules //其他模块
|+ library //本地类库
|+ models //model目录
|+ plugins //插件目录
PHP官方文档:https://www.php.net/manual/zh/intro.yaf.php
鸟哥官方文档:https://www.laruence.com/manual/index.html
配置文件:https://www.laruence.com/manual/yaf.config.optional.html
注册其他命名空间:https://www.laruence.com/manual/yaf.autoloader.html
类的加载方法:https://www.laruence.com/manual/yaf.autoloader.rule.html
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。