怎样在小程序里实现标题的更改
860
2022-10-25
一个用于教育目的简单PHP框架
easy
Another Simple PHP Framework For Education Purpose!
requirement
Web Server Apache / NginxPHP 7PDO (MySQL, PostgreSQL, etc)
installation
Restore easydb.sql to Your database.
configuration
database connection
Edit it in app/config.php file.
apache web server
Place .htaccess file in to public directory
RewriteEngine on# If a directory or a file exists, use the request directlyRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# Otherwise forward the request to index.phpRewriteRule . index.php
nginx web server
nginx configuration
server_name easy.local;root /var/www/easy/public;index index.php index.html index.htm;location / { try_files $uri $uri/ /index.php$is_args$args;}
directory structure
app controllers Site.php -> site controllerArticle.php -> article controller views default login.php -> default view login layout main.php -> layout file site index.php -> view file article index.php -> view fileview.php -> view file config.php -> configuration file core Application.php -> class main applicationAuthentication.php -> class auth middlewareController.php -> base controllerDatabase.php -> class database connectionerror.php -> error pageHelper.php -> class helpersUser.php -> model userMiddleware.php -> abstract class middleware public assets -> assets folder jscss index.php -> mount point application test -> folder automatic test with codeception
codeception.yml -> composer file, optional for testingcomposer.json -> composer file, optional for testingeasydb.sql -> sample dump databaseLICENSEpreview.png -> screenshoot applicationREADME.md -> readme file
another
username : admin password : 123456
screenshoot
Build with love by Hafid Mukhlasin
He is author of Be Fullstack Developer book (Best Seller!)
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~