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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T07:57:12+00:00 2026-05-17T07:57:12+00:00

I haven’t used the Zend Router much yet so not sure how difficult or

  • 0

I haven’t used the Zend Router much yet so not sure how difficult or easy this is, but I think Zend is flexible so it’s got to have a way to do this easily.

So I create a controller Cont with 2 actions actone and acttwo. This naturally gives me

//the default index controller
site.com/                
site.com/index/index     

//and my controller
site.com/cont/index
site.com/cont/actone
site.com/cont/acttwo

Is there a way I can access the actone action which is in the cont controller using a route that looks like this

site.com/actone

I realize I could get this look by creating a separate controller called Actone and this would be its index action but this actone action logically belongs to the Cont controller, so I want to just give the appearance of that path.

  • 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-17T07:57:12+00:00Added an answer on May 17, 2026 at 7:57 am

    You can create a custom route…

    Via application.ini’s – Router Application Resource

    resources.router.routes.route_title.route               = "/actone"
    resources.router.routes.route_title.defaults.controller = "cont"
    resources.router.routes.route_title.defaults.action     = "actone"
    resources.router.routes.route_title.type                = "Zend_Controller_Router_Route_Static"
    

    Or by adding one directly to the router.

    $router = Zend_Controller_Front::getInstance()->getRouter();    
    $router->addRoute('route_title', new Zend_Controller_Rotuer_Route_Static(
        '/actone',
        array(
            'controller' => 'cont',
            'action'     => 'actone'
        )
    ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't used the STL much before, but I started to on this huffman
haven't used regex replaces much and am not sure if how I have done
I haven't been able to find much about this but am I the only
I haven't used WPF that much so the solution to this is probably pretty
I haven't used ARC yet other than to deal with it when it forces
I haven't actually built an app yet, but I'm confused by documentation on bind-attr.
Haven't been able to figure this out yet.. I've seen a few answers around
Haven't seen this before so hopefully someone has a easy solve, I have a
I haven't tried that yet, but I assume that I would have to disable
Haven't found a solution to this problem yet, have tried some things... I have

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.