We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

New´Topic Form via Ajax | Forum

Paul
Paul Apr 13 '18
Hi,


i would like to open the "NewTopic" Form via Ajax, whe click on a button.


If created a controller with a Router and a component FORUM_CMP_ForumAddTopic


It all works fine and I am getting content with the following test data in the component:


$this->assign('content', 'test'); with a component view


But how can I render the template form "FORUM_CLASS_TopicAddForm" ?

I´ve tried several things, but I don´t know how to render this.


It shows me "There is no form with name `add-topic-form` !"

dave Leader
dave Jul 24 '18
Hi, do you still need help with this?


Youll have to set up the form in an html file and then in the php/ajax file index function youll need to use the new form class.