# Creating two button that will redirect to different views

**URL:** <https://discourse.cakephp.org/t/creating-two-button-that-will-redirect-to-different-views/3614>\
**Category:** Need Help\
**Created:** [December 6, 2017, 1:49pm UTC](https://discourse.cakephp.org/t/creating-two-button-that-will-redirect-to-different-views/3614 "2017-12-06T13:49:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam1408](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sam1408](https://discourse.cakephp.org/u/sam1408)\
**Post date:** [December 6, 2017, 1:49pm UTC](https://discourse.cakephp.org/t/creating-two-button-that-will-redirect-to-different-views/3614/1 "2017-12-06T13:49:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [December 6, 2017, 8:42pm UTC](https://discourse.cakephp.org/t/creating-two-button-that-will-redirect-to-different-views/3614/2 "2017-12-06T20:42:59Z")

</div>

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](https://book.cakephp.org/3.0/en/bake/usage.html)
