ElectroCom
Electronical devices web page to compare between models. Ratings and comments will help make up your mind!
Topics involved:
Model View Controller pattern with Php Templates management with Smarty engine Custom routing Different authorization levels for usersSteps to get started:
Prerequisites: A local web server installed. I will use Xampp in this example which is the most famous but you could use any other. Some examples for you here
Clone the repo in the htdocs folder of your Xampp download. The path should be likeC:xampphtdocsyourCutePage
Open Xampp and click Start of Apache and MySql
Open your broser and go to localhostphpMyAdmin
. There, click on the Import tab and click Examine. A window
will open and you must select the electrocom.sql
file that is in the file you cloned, in the Extras folder. This
will relieve you from having to create the database tables by yourself
In your browser, go to localhostyourCutePage
Have fun with the marvels of programming!
Note: The starting admin user is iamroot and its password is pass. The other users are Kratos, Magnolia, Felipe, Ralph and Hermione, and their passwords are 1234
Actions in the page:
The page allows the user to do actions according to their authorization levels
If the user enters as visitor, it will be able to:
See the categories and details of models See the comments of a specific model Sort comments by user, date or scoreIf the user is logged in, it could:
Perform the same actions of a visitor Add a score and a comment for a product modelIf the user is logged in with the admin account, it will be able to:
Do the same things a common user can Delete comments Add, delete and modify categories Add, delete and modify models as well See and delete user accounts Give and remove admin permission to other users
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。