mvc web application

9

Click here to load reader

Upload: klabcyscorpions-techblog

Post on 17-Jun-2015

151 views

Category:

Education


2 download

TRANSCRIPT

Page 1: MVC Web Application

BrowsePoint A Sample MVC Web Application

Page 2: MVC Web Application

Installation •  Clone the project into the desired directory. https://github.com/romeoartista/BrowsePoint

Page 3: MVC Web Application

Folder Structure

Page 4: MVC Web Application

Folder Structure assets/ •  Contains static file contents such as CSS, JavaScript,

and image files. config/ •  Contains configuration files in PHP format. Has app.php

and database.php by default.

Page 5: MVC Web Application

Folder Structure controller/ •  Contains the controller class files. All files

should end in “Controller” suffix. (eg MainController.php)

helpers/ •  Contains the helper files.

Page 6: MVC Web Application

Folder Structure lib/ •  Contains core classes needed to run the MVC

functionality of the web application. model/ •  Contains model classes for the web application. All

required classes should end in “Model” suffix. (e.g. UserModel.php)

Page 7: MVC Web Application

Folder Structure view/ •  Contains files in rendering web pages. One

controller is equal to one directory.

Page 8: MVC Web Application

Features Supported •  APC Caching •  HTTP Request Wrapping •  PHP Session Wrapping

Page 9: MVC Web Application

TODO •  Add object mapping of database result to

PHP class instance. •  Logging •  Memcache support •  Model class generator •  Improve configs •  Theme layout support