Hello, guys. I am new in PHP and Phalcon, so i can't understand many things. Please, tell me how i can properly load SwiftMailer into my app without Composer autoloader. I use next approach:
loader.php:
require_once($config->application->vendorsDir.'swiftmailer/swiftmailer/lib/swift_required.php');
$loader = new \Phalcon\Loader();
$loader->registerPrefixes(
array(
"Swift_" => $config->application->vendorsDir.'swiftmailer/swiftmailer/lib/classes/Swift',
)
);
But is this right? Should i use this require_once in that place? If not, please tell, where it must be?