Reputation: 1
how to redirect between pages..for eg.if i click on login link then it should be redirect on login page..
Upvotes: 0
Views: 359
Reputation: 9719
I'm not really sure I understand your question....
If you want to create a link on a page to a controller / action, for example if your login script was in the controller users
and the action was called login
, you could put a link in the view script of a page by using the baseUrl
:
<a href="<?php echo $this->baseUrl("users/login"); ?>">Login</a>
Upvotes: 2
Reputation: 14184
If your question is about:
Generating a url for page associated to your application, then I recommend checking out the Url view-helper.
Displaying a url, then I recommend checking out view-scripts and layouts.
Redirecting to a url - say, from within a controller, after successful login - then I recommend checking out the Redirector action helper.
Upvotes: 3