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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:48:02+00:00 2026-06-06T06:48:02+00:00

I am using symfony 1.0 and have set routing for few URLs as below.

  • 0

I am using symfony 1.0 and have set routing for few URLs as below.

static_pages:
url: docs/:page.htm
param: { module: docs, action: index }

Now, I have set routing for a different kind of URL.

URL is http://news4u.com/search/description/id/3/css/a/act/a

I have set routing as below

description:
url: /search/description/id/:id/css/:manu/act/:mgh
param: { module: search, action: description}

Is this correct format to get values of ‘css’ and ‘act’. at time when URL is missing css parameter, i mean if url is as below:

http://news4u.com/search/description/id/3/css//act/a

the value of – getRequestParameter(‘css’) is showing as ‘act’ and
the value of – getRequestParameter(‘act’) is empty

So, i tried to apply routing and please correct me if am wrong. I am not getting desired out put using above routing configuration.

  • 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-06-06T06:48:03+00:00Added an answer on June 6, 2026 at 6:48 am

    You don’t necessarily need to specify “id”, “css” and “act” as parameters in your routing.yml file unless you’re using their presence in the URL to send users to the search module and description action.

    Using the following rule in your routing.yml would still work:

    default:
      url:   /:module/:action/*
    

    Then you should be able to use

    url_for('search/description', array(
       'id' => 4, 
       'css' => 'something', 
       'act' => 'blah'
    ); 
    

    to generate a link like this: /search/description/id/4/css/something/act/blah

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

Sidebar

Related Questions

I am using symfony 1.0.6 and I have directory structure as below: apps/frontend/module/news/action/action.class apps/jobseeker/module/profile/action/action.class
we using symfony 1.0. We have an module work with Propel objects. The sql-querys
I'm using Symfony 2 with Doctrine. I have 4 classes: Country, District, County and
I'm building a site using symfony php framework. I have a link in my
I have a Symfony 1.4 app using sfDoctrineGuardPlugin for users. I need to move
I am new to symfony. I have created a registration form using the code:
I'm using Symfony and Doctrine, and have several many-to-many relations that work fine. But
I have a many-to-many relationship defined in my Symfony (using doctrine) project between Orders
If I have a class (like below) and in a function I set a
I am implementing a web app using symfony 2. It has a main page

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.