PHP Classes


Recommend this page to a friend!
  Classes of Ali Sharifi  >  MVC 4 Dummies  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Auxiliary data
Class: MVC 4 Dummies
Web development PHP MVC framework
Author: By
Last change:
Date: 7 years ago
Size: 622 bytes


Class file image Download

PHP MVC 4 Dummies

A Simple PHP MVC Framewok

make Hello World

edit /routes.php


in /controllers make HomeController.php

class HomeController extends BaseController
      public function index(){
          $this->templateEngine->assign('greeting','hello world');

in /views/templates make home.tpl

<!DOCTYPE html>
    <meta charset="utf-8"/>
    <title>hello world</title>

For more information send a message to info at phpclasses dot org.