PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 23, 2019 3:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Nov 29, 2010 5:22 pm 
Offline
Forum Newbie

Joined: Thu Jun 05, 2008 7:52 pm
Posts: 24
is conflicting with swiftmailers autoloader.

When I tried to

Syntax: [ Download ] [ Hide ]
include($_SERVER['DOCUMENT_ROOT'] . "/Swift-4.0.6/lib/swift_required.php");


it would cause my class autoloader to stop working and my whole application to break.

Syntax: [ Download ] [ Hide ]
function __autoload($class_name)
{
        require_once CLASSES_PATH.$class_name . '.cls.php';
}
 


So I tried to load the swift_init class.

Syntax: [ Download ] [ Hide ]
include($_SERVER['DOCUMENT_ROOT'] . "/Swift-4.0.6/lib/swift_init.php");


And now my autoloader is screwing it up because it's trying to look for the swift classes in my CLASSES_PATH.

Should I not be auto loading the classes in my application in this manner? Or can I do something here to make swiftmail work?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group