Php oop!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Originally posted by shushant View Post
    I Like sql_autoload_register as it is time saver
    coz does'nt need to require class in core or config file.
    Nd then starting up new instization of class
    Code:
    $clas = new class;
    to avoid it
    just simple put
    Code:
    sql_autoload_register(function($class){
    require $class.'.php';
    });
    then
    use
    Code:
    $clas = new clas;
    as it will auto require class on instization :D
    You mean spl_autoload_register

    Comment


      #32
      Originally posted by CreativityKills View Post
      You mean spl_autoload_register
      Yes,
      sry for
      small spell error

      Comment

      Working...
      X