# Inserting new Page in already created CakePhp Application

**URL:** <https://discourse.cakephp.org/t/inserting-new-page-in-already-created-cakephp-application/3189>\
**Category:** Uncategorized\
**Created:** [September 14, 2017, 10:20am UTC](https://discourse.cakephp.org/t/inserting-new-page-in-already-created-cakephp-application/3189 "2017-09-14T10:20:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil.bararia](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@nikhil.bararia](https://discourse.cakephp.org/u/nikhil.bararia)\
**Post date:** [September 14, 2017, 10:20am UTC](https://discourse.cakephp.org/t/inserting-new-page-in-already-created-cakephp-application/3189/1 "2017-09-14T10:20:54Z")

</div>

Hi. I want to insert a new page in an application that uses CakePHP. I already have a LoginPage to the application. As of now, a different page loads after logging in. I want the new page to load after I log into the application.  
Can someone tell me how to go about it in detail as I am new to CakePHP.

---

<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:** [September 14, 2017, 3:08pm UTC](https://discourse.cakephp.org/t/inserting-new-page-in-already-created-cakephp-application/3189/2 "2017-09-14T15:08:00Z")

</div>

Please clarify your question.

Do you have an exisitng application what is not CakePHP and you want to build up on it a CakePHP application?

---

<div class="post-metadata">

**Author:** ![nikhil.bararia](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@nikhil.bararia](https://discourse.cakephp.org/u/nikhil.bararia)\
**Post date:** [September 15, 2017, 2:43am UTC](https://discourse.cakephp.org/t/inserting-new-page-in-already-created-cakephp-application/3189/3 "2017-09-15T02:43:12Z")

</div>

I have an existing application that works on CakePHP.  
I just want to insert a new page(Html View) into the application.  
The new page should appear just after logging into the application.

---

<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:** [September 15, 2017, 8:39am UTC](https://discourse.cakephp.org/t/inserting-new-page-in-already-created-cakephp-application/3189/4 "2017-09-15T08:39:42Z")

</div>

If it is a page (static) just create a file for it at /src/Template/Pages/pagename.ctp A home.ctp is there you can use it as an example.

If it has dinamic content create the controller action and the corresponding template file for it.

Than use a redirect in your controller where you handle login. If you use a plugin for this (like cakeDC/users) chack there how to set up the redirect.
