What is the best way to create a small form that is visible on all pages? I want to have a small form in the sidebar where users can add notes (without changing view..)
I have tried just adding the for in the layout and send the data to a controller using an ajax function: onsubmit="ajax('{{=URL(c='settings',f='add_mote')}}', ['note_id'], '') In the controller I then have a simple function that adds the data sent from the form into the database. The problem is that this approach seems unstable. For some reason only 4/5 substitution are able to call the controller and some data is lost. What is the proper way to do this? Best regards Harald --