Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7407645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:45:33+00:00 2026-05-29T05:45:33+00:00

learing to work with zend framework, I am facing some minor problem. I create

  • 0

learing to work with zend framework, I am facing some minor problem.
I create a login form with Zend_Form, and then in my Controller I call my form in my controller

Here is the layout of my module

Module: compte
controller: compteController
Action: loginAction

In my application.ini I create a resource for my login route like this:

resources.router.routes.login.route = /compte/login
resources.router.routes.login.defaults.module = compte
resources.router.routes.login.defaults.controller = compte
resources.router.routes.login.defaults.action = login

I then call the login page like this exemple.com/compte/login the problem is that when validating the form, if the is an error the login page display again which is correct but with the total route exemple.com/compte/compte/login.

My question is that how can I correct this problem so that when the form is not valid the form re-display with correct address in the explorer.

Thanks in advance for your answer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:45:34+00:00Added an answer on May 29, 2026 at 5:45 am

    What is the form’s action set to?

    Maybe you need to do $form->setAction('/compte/login'); in the view or controller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I finished some of the steps in http://framework.zend.com/manual/en/learning.quickstart.create-project.html and got it to work to
I just started learning the zend framework and what im wondering is , is
I am learning to work with PHP and have a simple problem. <?php ini_set('display_errors',
i'm a .net guy doing some work/learning RoR. i have a handful of environment-specific
I have to do some work with Q Learning, about a guy that has
I'm trying to work out how to implement some machine learning library to help
I'm learning how to work with threads in Java and I need some advice..
I'm learning how to work with raw sockets in Linux. I'm trying to create
I'm using Zend Framework and I feel that I need a good ORM to
I ran some code last Friday before leaving work, and I'm here on Monday,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.