Hi guys,

  In the Autoloading Objects Section of your documentation I believe you have a small error in the example you gave, the example is:

 

<?php
function __autoload($class_name) {
   include_once($class_name . 'php');
}

$obj  = new MyClass1();
$obj2 = new MyClass2();
?>

 

In the third line of this example I believe there should be a “.” Before the php i.e.

 

include_once($class_name . '.php');

 

if I am incorrect about this sorry for taking your time

 

cheers

 

Kishan

Reply via email to