extends [file] ?

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Thu Jul 11, 2013 10:58 pm

first include that file in your second file. Take a look at the include(), require_once() etc
http://php.net/manual/en/function.include.php

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Sat Jul 13, 2013 6:02 am

Whether you use include() or cake, the parent class has to be visible to the child for it to extend or inherit - there are no shortcuts here.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests