摘要: 根据ThinkPHP官方文档学习opensns框架 1.解读Application下各个Controller文件夹下的作用 控制器类的命名方式是:控制器名(驼峰法,首字母大写)+Controller 控制器文件的命名方式是:类名+class.php(类文件后缀) ` 2.解读thinkphp的开发规 阅读全文
posted @ 2018-06-10 23:18 我系渣渣辉 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 根据ThinkPHP官方文档学习opensns框架 主要看了下opensns所用的单一入口模式的意义。 基础 opensns目录结构 1. index.php 入口文件 2. Application 应用目录(含有对应页面功能的php函数) 3. Public 资源文件目录,一些共用的css,js, 阅读全文
posted @ 2018-06-10 22:14 我系渣渣辉 阅读(357) 评论(0) 推荐(0) 编辑
摘要: openses 大体结构解读 页面html与相关php文件的定位 点击界面,查看出现的url 例如: http://localhost/opensns/index.php?s=/people/index/index.html 大概会将会将/people/index/index.html这个参数传送给 阅读全文
posted @ 2018-06-10 12:56 我系渣渣辉 阅读(313) 评论(0) 推荐(0) 编辑