email - PHP can't find class 'GhostMailer' -
so trying call functions of mailer class.. in phpstorm when type ghostmailer::setsender();
i can navigate file when click scroll button on ghostmailer:: text ghostmailer into, whenever run program says class ghostmailer not found..
code calling
ghostmailer::setsender(input::get('emailfrom')); ghostmailer::addrecipient(input::get('emailto')); ghostmailer::setsubject(input::get('subject')); ghostmailer::sethtml(true); ghostmailer::setmessage(input::get('email')); ghostmailer::setreturnaddress(input::get('emailfrom')); ghostmailer::getheaders(); ghostmailer::send(); how fix this?
this sounds me class (file) not loaded , therefore class doesn't exist @ runtime.
add "app/classes", classmap array in composer.json , run composer dump-autoload , should go
Comments
Post a Comment