Answer the question
In order to leave comments, you need to log in
October CMS error in getAttribute() function?
I'm writing a reverse form plugin. Created a Contact Form component.
ContactForm.php:
<?php namespace Titamik\Contact\Components;
use Cms\Classes\ComponentBase;
use Input;
Use Mail;
class contactform extends ComponentBase {
public function componentDetails() {
return [
'name' => 'Contact Form',
'decription' => 'Контактная форма'
];
}
public function onSend() {
$vars = ['name' => Input::get('name'), 'email' => Input::get('email')];
Mail::send('empty', $vars, function($message) {
$message->to('[email protected]', 'Admin Person');
$message->subject('This is a reminder');
});
}
}
call to a member function getAttribute() on null on line 447 .../parsedownextra.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question