Monthly Archives: February 2013

php making of django like template system with extend

add this class Template : class Template {     const DIRECTORY = ”;     protected $path;     protected $extendedTemplate = null;     protected $sections = array();     protected $currentSection = null;     public function extend( $name )     {         … Continue reading

Posted in PHP | 1 Comment

making own mvc framework in php

include these two classes will make Request Class : <?php Class Request {     private $_controller;     private $_method;     private $_args;     public function __construct(){         $str=$_SERVER[‘REQUEST_URI’];        // echo “<pre>”;         //print_r($_SERVER);         $first_slash = strpos($str, ‘/’);         … Continue reading

Posted in PHP | 1 Comment