Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

cedricpoon/hkuf-intro-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hkuf-intro-website 𐄁

Introductory website of HKU Fellows, powered by Semantic UI, Less and jQuery.

Feature

  • PHP Routing for subpages — /index.php
  • Ajax on subpages and mainpage loading — /?*(...)
  • MVC as infrastructure

Run

  1. php -S localhost:8080 (Please set document root at / instead of /fyp/2018/fyp18005)
  2. Browse http://localhost:8080/fyp/2018/fyp18005/

Develop

Adding New Subpages

  1. Insert new sidebar item in /store/sidebarItems.json
  2. Structure new subpage in /store/article/*.json (Refer to other articles)

Paths

Root: /fyp/2018/fyp18005/

  • Controller: /controller/*.php
  • Model: /store/*.json
  • View: /view/*.php
  • Subpages view: /view/article/*.php
  • JavaScript: /static/script/*.js
  • Stylesheet: /static/stylesheet/*.css(.less)

License

MIT.