Re: Going crazy with include & require not working
| From: | Richard Quadling | Date: | Wed, 08 Jun 2011 09:24:57 +0000 |
| Subject: | Re: Going crazy with include & require not working | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313462@lists.php.net to get a copy of this message | ||
On 8 June 2011 10:21, Richard Quadling <rquadling@gmail.com> wrote:
> On 7 June 2011 22:17, Brian Dunning <brian@briandunning.com> wrote:
>> Thanks, this helped me solve it. FPDI extends a class in FPDF, so I simply had to reverse
>> the order in which I call them and all is hunky dory.
>
> I would take a look at using an autoloader
> (http://www.php.net/manual/en/language.oop5.autoload.php and
> http://uk.php.net/manual/en/ref.spl.php).
And having got your own autoloader created, I use auto_prepend_file to
always include it.
http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea