- Requirements
- Project Structure
- Directories
- Database
- Studnet portal
- admin management system
CRUD
- Apache Server installed : prefered xammp or mamp
- MYSQL Database
the structure of project is type of MVC Model , View , Controller this Architecture is responsibe for arrangement and your code be more readable by others.
-
each backend process has directory this directory contains on application this app diveded to sub directories
-
mode - controller - partials
-
1 -
Directory
isalumni
-
alumni contains on :
-
login student
-
storage : to store event and images student
-
student application : the logic of login page
-
portal application : dsahboard of student
-
admin system management for collage : CRUD APPLICATION For Management System
-
2 -
Directoy
isassets
-
assets contains on :
- css files
- js files
- libaray files
-
3 -
Directory
errors
resposible for display errors when the user to unknown directory / unknown routes -
errors contains on :
404-page
-
4 -
Dir
home
is responsible for displayhome
page and all content of home paeg/
-
home contains on :
-
index.php
-
5 -
Dir
pages
is responsible for displaypages
of home page likesub-dir
CV
Contact
PHPMAILER
- 1 Intialize connection :
- open
phpmyadmin
you can download Xammp or MAMP to open it - create new
database
calledalumni
: - import
sql file
alumni
- open
- 2 create new file
config.php
anddb_connection.php
- in
config.php
:
// credential connections
<?php
define("BASE_URL", "/");
define('DB_HOST', "localhost");
define("BASE", "/");
define("DB_USERNAME", "root");
define("DB_PASSWORD", "");
define("DB_DATABASE", "alumni");
define("DB_DATABASE_PORT", "3306");
?>
-
in
db_connection.php
<?php // start db connection try { $db = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_DATABASE . ";port=" . DB_DATABASE_PORT . ";", DB_USERNAME, DB_PASSWORD); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->exec("SET NAMES'utf8'"); } catch (Exception $e) { echo $e->getMessage(); exit; }
Description : general routes of home pages only accessible these routes otherwise will return 404-error-page
Route Page Title http status code localhost:/ Home 200 Ok http://localhost/cv CV 200 ok http://localhost/about about 200 ok http://localhost/event Event 200 ok http://localhost/contact Contact 200 ok http://localhost/login Login 200 ok http://localhost/stories Stories 200 ok http://localhost/acheivment acheivment 200 ok http://localhost/speaker Speaker 200 ok Description : Dashboard of student for display data on page
Route Title & Description http status code Type /portal_?page=_dashboard Portal Dashboard of student and news 200 Ok GET /portal_?page=_profile_student profile student : get data for student 200 GET /portal_?page=_register_portal create register : create register course for students 200 ok POST /portal_?page=_getcourse_portal get registered student for courses 200 ok GET /logout logout 200 ok GET Description : Dashboard of management system collage for CRUD Operations
Route Page Title & Description http status code Type /dashboard.php?page=_dashboard Dashboard: Display Data of student and event 200 Ok GET /dashboard.php?page=_dashboard_management_events_students Management : update events and students 200 PATCH /dashboard.php?page=_create switch page create btwn event & student 200 ok POST /dashboard.php?page=_create_student register student : create new student for collage 200 ok POST /dashboard.php?page=_create_event register event : create new event for collage 200 ok POST /dashboard.php?page=_manage_admin manage admin setting 200 ok PATCH /dashboard.php?page=_enroll_event enroll page : display registered data 200 ok GET /logout logout 200 ok GET