Creating two button that will redirect to different views


#1

Hello… I’m new to cakephp development… I’m building a web application which communicates with my android application…
I have a ‘new product’ link in my sidebar…when I click that link I want to show two buttons which says ‘Add product to this category’ … I have only two category as of now… and I have two tables defined already
So I would like to add the product to the specific category i defined in the button…please help


#2

The best thing is to bake your model, controller and view and than modify the code to meet your requirements.
This is an easy problem with an easy solution, but you can not skip learning the basics.
https://book.cakephp.org/3.0/en/bake/usage.html