<?php include("models/m_template.php"); $Template = new Template(); //Problem is here "Undefined type "Template" $Template->load("views/v_login.php");
<? //Template Class - handless all templating tasks (displaying templates, alerts, errors) class Template { //Constructor function __construct() {} //Functions function load($url) { include($url); } }
include 'models/m_template.php';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)