Reputation: 1255
I created a custum library and it is working on localhost ci-v2. But if i am tring to use it in live server having ci v3 it is showing me error .
Please take a look on my controller -:
public function index()
{
$this->load->library('smtp_email/smtp_email');
$mail = new smtp_email();
echo "here you are "; die();
}
My libraries folder look like -:
/application/libraries/smtp_email/
smtp_email.php
class.phpmailer.php
class.smtp.php
Error -:
An Error Was Encountered
Unable to load the requested class: Smtp_email
Upvotes: 0
Views: 82
Reputation:
For "CI 3" file name should be start with uppercase letter like Smtp_mail.php try this one.
Upvotes: 1