Skip to main content
Inspiring
June 14, 2017
Question

autoloading classes, spl_autoload_register

  • June 14, 2017
  • 0 replies
  • 207 views

How do you get Dreamweaver to show the functions and constants defined within a class when autoloading classes.

This will show class functions

require_once('Listings.pdo.class.php');

$li=new Listings;

$li->  (listing of class functions shown)

This will not

spl_autoload_register(function ($class_name) {

    require $class_name . 'pdo.class.php';

});

$li=new Listings;

$li->  (no function list shown)

    This topic has been closed for replies.