Re: Redirecting to another url in cake

2008-01-21 Thread hydra12
A couple of things: first, I'd use the html link helper to make links. link('Test', '/controller/action'); ?> Second, it should be /controller/action, not controller/action. Third, pagesController is a built-in part of cake, so you can't have a controller called pages. In reference to your ro

Re: Redirecting to another url in cake

2008-01-21 Thread Novice Programmer
Hello hydra, you got my point right. But here i have a little query regarding routes as well. Please bear with me as i am new to cake. lets say that i have a layout default.thtml. and i am having a link in the default page which points to some other page(which happens to be the cake page itself).

Re: Redirecting to another url in cake

2008-01-21 Thread hydra12
I'm still unsure what you are wanting. Are all of these new pages going to be cake pages, or are they going to be static pages? If they are cake pages, then your two points are correct. Sometimes it is easier to make a new layout. On Jan 19, 1:37 am, "Novice Programmer" <[EMAIL PROTECTED]> wro

Re: Redirecting to another url in cake

2008-01-18 Thread Novice Programmer
Hello, Actually i am trying to port a legacy application. In the page there are a lot of forwards thro html tag. Now what i was thinking was that what is the best way to convert these tags new layouts, or the same layout with different views loading at different time. After i researched i came to

Re: Redirecting to another url in cake

2008-01-18 Thread bright_o
What exactly are you trying to accomplish? On Jan 18, 1:39 pm, "Novice Programmer" <[EMAIL PROTECTED]> wrote: > Hello guys, > > What is the best way to handle the redirections such as in cake php. Do i define new layout for the page > mypage or should i have seperate view and load it in the