I created an input script. I write name and script post name into database. But I have error - ErrorException [ Notice ]: Undefined variable: result .
ErrorException [ Notice ]: Undefined variable: result
There
Add the method attribute to your form:
Change:
if(!empty($_POST['name'])){
To:
$result = ''; if(!empty($_POST['name'])){
And ensure that:
$this->template->content = View::factory('about/about')->set('result', $result);
will work when $result is empty.
$result