amit
amit

Reputation: 1

Redirection between pages in zend framework

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

Answers (2)

Scoobler
Scoobler

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

David Weinraub
David Weinraub

Reputation: 14184

If your question is about:

  1. Generating a url for page associated to your application, then I recommend checking out the Url view-helper.

  2. Displaying a url, then I recommend checking out view-scripts and layouts.

  3. Redirecting to a url - say, from within a controller, after successful login - then I recommend checking out the Redirector action helper.

Upvotes: 3

Related Questions