apache - PHP Fatal error: Class 'Swift_Validate' not found -
i trying utilize swift_validate::email($email) , php error: php fatal error: class 'swift_validate' not found.
i have latest version of swiftmailer. there preference settings need do?
i have tried including validate.php file, error: php fatal error: class 'swift_dependencycontainer' not found.
i include dependencycontainer.php , error php fatal error: class 'swift_dependencyexception' not found.
i include dependencyexception.php , error: class 'swift_swiftexception' not found.
i include swiftexception.php , still same error.
i think must not have preferences set correctly. calling: "require_once($dir.'/swift/swift_required.php');"
the code using validation is: if (!swift_validate::email($email)) { $error = true; }
any help appreciated. using latest apache , php.
try require_once dirname( __file__) . '/lib/swift_required.php';
utilize built-in autoloader, lib
subfolder of folder current file ( default directory construction of library )
php apache swiftmailer
No comments:
Post a Comment