Skip to content

MrKamis/mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple basic MVC PHP template with XAMPP

Features:

  • jQuery
  • Bootstrap
  • Simple .htaccess

How to use:

Creating controllers with models:

Type .\newClass.bat 'ControllerName' in console in project directory.

How works .htaccess

First parametr is controller name, next method and last argument for method - it can be only one!

How to use AJAX

Send javascript ajax request to ajax/type.

Then creates files in app/ajax, which they ll be use to control ajax request

New file ajax.php is created, because it's not contain html tag with all structure!

Also it's send header text/plain