extends [file] ?

General discussions related to php

Moderators: macek, egami, gesf

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

Re: extends [file] ?

Post by johnj » 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: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: extends [file] ?

Post by johnj » 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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest