Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
HTML body emails with view
  • I get this error: ErrorException [ Error ]: Call to a member function html_body() on a non-object I've tried all these: $email->html_body(\View::forge('emails/welcome', $email_data)->render());
    $email->html_body(View::forge('emails/welcome', $email_data)->render());
    $email->html_body(\View::forge('emails/welcome', $email_data));
    $email->html_body(View::forge('emails/welcome', $email_data)); If I load the View before hand and var_dump it, I get a string when using the first one, so logically that should work? Using FuelPHP 1.1
  • Tried it with just a string of the word hello, still not working!
  • So it turns out I was using $email, and I'd copied the other parts from the read me which start with $mail. Going to bed now.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion