Skip to content

Latest commit

 

History

119 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP fixer Use php fixer to fix the code with the following command php-cs-fixer.phar fix /path/to/project Methods

Only 2 types of http methods are allowed inside the method comments. There are all compulsory when calling Route::all(urlname, controllerName), Route::get(...), Route::post(...)

  • get
  • post

The use of the http_method and auth are declared by adding comment on the class method.

/**\
*http_method=get
*auth=admin
*/
public function nameOfMyMethod() {

}

.htaccess content

RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /public/index.php [L]

Options -Indexes

About

projet P5 blog

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages