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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:17:05+00:00 2026-06-18T15:17:05+00:00

I have to recive information from another server (token) with http GET method. I

  • 0

I have to recive information from another server (token) with http GET method.
I can change URL at witch I get I it, so I figured I could try to get the GET to be a parameter in an action like this:

start/tokenize/token?code=doekoedjorcfoehof

And it turns out that evrything after ‘?’ is ignored.
Also I tried to define a route:

$di->getRouter()->add("/tokenize?code={code}", "Start::tokenize");

So that is ignored as well…

I think ‘?’ has something to do with apache mod_rewrite, is it possible to retrive a GET with a special mod_rewrite rule?

  • 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-18T15:17:06+00:00Added an answer on June 18, 2026 at 3:17 pm

    The Router component is not able to route from the query string, it only parses the route uri:

    start/tokenize/token?code=doekoedjorcfoehof
    

    A route for that URL is the following:

    $di['router'] = function() {
    
        $router = new Phalcon\Mvc\Router(false);
    
        $router->add('/start/tokenize/token', array(
            'controller' => 'tokenize',
            'action' => 'parse'
        ));
    
        return $router;
    };
    

    In your controller:

    <?php
    
    class TokenizeController extends Phalcon\Mvc\Controller
    {
        public function parseAction()
        {
            $code = $this->request->getQuery('code');
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From what I can understand, counting-to-infinity occurs when one router feeds another old information,
I have a method that will receive a string , but before I can
I have a program which will be receiving information from an external source via
I have a database. It has a table ABC which receive record from another
I have moved my server from dreamhost to Godaddy recently When I was with
Currently I have this problem. Client downloads from server successfully only the 1st time.
I have an application that receives information from a database, and is used to
I want to make a class that will have a single get template method
I have a javascript interface class to receive some values from javascript. I toasted
I have a WebLogic 11g domain with 1 admin server and 4 managed servers

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.