I am getting this error when i do form submit.
here is my code:
View
class View_Tabs_Activities extends View {
function init() {
parent::init();
$f = $this->add('Form', null, 'PostForm');
$f->setModel('Post');
$f->addSubmit();
}
function defaultTemplate() {
return array('view/tabs/activities');
}
}
HTML
<div class="tab-pane active" id="shareTab">
<div class="share">
<?$PostForm?>
</div>
</div>
Here is something that i found by checking the console: