Tuesday, May 29, 2018

php - Syntax error unexpected T_CONSTANT_ENCAPSED_STRING




I am getting the following error syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on this line $this->email->subject($this->core_model->companyDetails()->coreCompanyName 'User Registration Confirmation'); have I make a mistake with the '' and ""? I have also past the name as $data can I include this in the subject instead of the model call?


Answer



You probably forgot a comma: Try this:



$this->email->subject($this->core_model->companyDetails()->coreCompanyName, 'User Registration Confirmation');


instead of



$this->email->subject($this->core_model->companyDetails()->coreCompanyName 'User Registration Confirmation');

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...