In my index.ctp, I am creating a table and the last column of the table will have 3 buttons to perform actions on that specific row. The buttons will be View, Edit, and Delete.
I am trying to decide what will be easier, using cakephp's form helper to create a button and link the button with the corressponding controller action, or use javascript to create the input but then how would I link the onclick to the controller action.
I am a total noob at cakephp so any help would be great.
Here is the code for the buttons using the form:
(I don't have any events on the button becase I don't know how to link the events to the controller)
Here is the same thing but written with cakephp's form helper:
I needed help with getting the buttons to communicate with their actions.
Ultimately I will try and open a modal window with one of the views in the window.
Thanks in advance
以上就是HTML style input with Cakephp Action的详细内容,更多请关注web前端其它相关文章!