# dinner **Repository Path**: chenrui310/dinner ## Basic Information - **Project Name**: dinner - **Description**: Dinner 是一款挺适合公司内部使用的订餐系统,之前开发这个订餐系统 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/dinner - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-01-31 - **Last Updated**: 2023-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 订餐系统 ============= 一、使用方法 ------------ ### 1.将项目解压之后放到本地web根目录 ### 2.打开浏览器,访问:http://localhost/dinner/yii/requirements/ 这步目的主要是检测本地环境达不到要求,由于该系统是用yii框架写的,yii内置一个检测环境的文件 ### 3.导入sql文件 sql文件的位置在webroot/dinner/protected/data/dinner.sql ### 4.配置config 打开webroot/dinner/protected/config/main.php 配置自己数据库名称、用户名、密码 ### 5.修改目录权限 由于有些目录会动态的写文件,例如assets、runtime目录,所以为了简便,直接将dinner/目录权限修改成777 ### 6.完成以上的步骤,就可以访问了 前台的地址:http://localhost/dinner/index.php 后台的地址:http://localhost/dinner/index.php?r=user 后台的默认用户名与密码:admin admin ### 7.注意 1.如果安装好之后出现PHP notice错误,建议修改php.ini里面的error_reporting = E_ALL & ~E_NOTICE 2.导入菜单的时候,文件里面的格式类似下面这样,每行顶格写,一行一个菜,菜名与价格中间用#分隔 牛肉粉丝#28.0 宫保鸡丁#12.0 鱼香肉丝#16.0