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

  • Home
  • SEARCH
  • 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 6213581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:43:22+00:00 2026-05-24T06:43:22+00:00

If we use capital alphabet in between name for zend controller and action for

  • 0

If we use capital alphabet in between name for zend controller and action for example inside default module we create

class MyGoodController extends Zend_Controller_Action {

public fooBarAction()
{

}

}

Than to access this action browser url looks like mysite.com/my-good/foo-bar

Is there any default zend router added inside zf managing this translation ?
because I want to use URL view helper to generate the correct link for me which it doesnt for e.g in view

$this->url(array('action'=>'fooBar','controller=>'myGood')); 

did not produce the correct url it generates /myGood/fooBar instead of /my-good/foo-bar

  • 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-24T06:43:22+00:00Added an answer on May 24, 2026 at 6:43 am

    As stated in the comment you need to use:

    $this->url(array('action'=>'foo-bar','controller=>'my-good'));
    

    The URL view helper assembles a link based on a route set in your application.

    Routes match requests based on the URL.

    It really comes down to separation of concerns. The helper is only making use of a route and again routes only deal with what is in the URL. Getting the proper class names based on a route is the dispatcher’s concerns.

    It’s best to leave the route to deal with only what is in the URL because dispatchers can change. What might work for you using the standard dispatcher may not fit others that use a different dispatcher.

    To accomplish what you’re asking, you can always use a custom view helper that does the conversion for you but that is assuming you never change dispatchers.

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

Sidebar

Related Questions

I have always wondered when to use identifiers (for example, functions) with capital first
I've noticed that, occasionally, when I use O (capital 'o') to create a new
I've seen most coders use Capital letters while writing MySQL queries, something like SELECT
I found that if a user registers with an email and use a capital
I want to implement the conditional expectation operator. I will use the capital epsilon
In a book I been reading they use a capital letter for public methods
Why does stringsAsFactors use capital letters to aid readability in R when most other
I have a ViewBag.IsLocal set to true in controller. I would like to use
Hello I want to create a regex to find words which have capital words
for my CS class.. cant use vectors! Ive searched everywhere for some information on

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.