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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:00:17+00:00 2026-06-09T23:00:17+00:00

In my Controller I need to create annotation route and it must be the

  • 0

In my Controller I need to create annotation route and it must be the same of this :
/getservice?from=2012-06-01&to=2012-06-25

I have tried this but it’s not working

/**
 * @Route("/getservice",defaults={"from" = "","to" = ""})
 * @Route("/getservice?from={from}&to={to}")
 * @Template()
 */

Any ideas ?

  • 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-09T23:00:19+00:00Added an answer on June 9, 2026 at 11:00 pm

    Just create a route for the getservice part and get the parameters from the GET request

    /**
     * @Route("/getservice")
     * @Template()
     */
    public function getServiceAction (Request $request) {
    
        $from = $request->query->get('from');
        $to = $request->query->get('to');
        ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website with urls like this : www.mysite.com/controller/action/id I need to create
I need to get(retrieve) updated cell value in controller. (MVC) So I tried this,
I need to create a default route for my application: match '/:controller(/:action(/:id))' The thing
I need to create a route so it looks like this: /{project}/{module_type}/{module_name}/{sub-section}/{id} So in
I'm using CakePHP 2.2.0 and I need to create one route that get this
I need to create a TreeView type controller that will display rich text. Example:
In my app, I create view controller objects as I need them. When a
At the moment I am doing this in each controller i need it :
I need to ignore routes matching this schema /{controller}/edit/undefined {controller} - could be any
i need to create an url like this: www.example.com/index.php/scheda/name-surname-id.html so i create the Scheda

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.