Skip to content

Hello World kind of MVC framework. Just to teach the basics

Notifications You must be signed in to change notification settings

Lukmi987/Basic-PHP-MVC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic PHP MVC example

Hello World kind of MVC framework. Just to teach the basics

Short tags

The example view utilizes PHP short open tags, for readability and shorter code.

This means writing <? foreach ($result as $product): ?> instead of <?php foreach ($result as $product): ?>, and <?= $product['id'] ?> instead of <?php echo $product['id'] ?>. Also, note that we can leave out trailing semicolons for single statements.

You might have to enable short_open_tag in your PHP config.

About

Hello World kind of MVC framework. Just to teach the basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%