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 6573451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:08:04+00:00 2026-05-25T15:08:04+00:00

I have an action called ‘run’ in the controller ‘tests’, I want to re

  • 0

I have an action called ‘run’ in the controller ‘tests’, I want to re run the action with the same parameter as passed in the first run.

for example /tests/run/6 , I want to run the same (/tests/run/6) once the form input is submitted, while I am able to run this on my local server using $this->redirect($this->referer()) in the action but not able to do so on my hostgator VPS server, it rather goes to /tests/run and not /tests/run/6

What am I doing wrong here, I tried $this->redirect(array(‘action’=>’tests’,$id)) but this is running /tests/run and not /tests/run/6

  • 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-25T15:08:05+00:00Added an answer on May 25, 2026 at 3:08 pm

    because you use 1.3 where the form does not automatically post to itself (as opposed to 2.0 where I recommended that and where it was introduced).

    you need to use url in this case:

    <?php echo $this->Form->create('Model', array('url'=>'/'.$this->params['url']['url']));?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example: I have a controller: Services and an action called web. Thus, my
I have a action on my controller (controller name is 'makemagic') called 'dosomething' that
I have code that I want to be executed before every action is called.
I have a div called test and mvc action in the client controller The
I have a page. (action) and a controller called Widget. im passing in client
I have the action: UPDATED Action in Item Controller. Action called from ajaxLink in
i have a MVC controller called MyController with an action called MyAction. For other
Here is my situation: I have a controller action called OrderFromCategory which fills a
I have a controller named AccountController and action called ResetPassword. From the html markup
i have a controller Apps. It consists of one action index. Now I want

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.