php - How i get parameter from url in zf2? -


I am new to zf2 and I have to get the parameters from the url. But when I write

  if ($ this-> getRequest () -> isGet ()) {$ get = $ this- & gt; Params () - & gt; fromQuery (); } Print_r (get $); In the controller   

this blank table returns how do I get the parameters from the URL? This is my URL:

I have to get 46. How do I get this parameter?

In the controller you can do that with the ultimate plugin:

  $ this-> Parameters () - & gt; FromQuery ();   

but fromQuery standard received from parameter ? Var = value and var2 = somevalue . Because you have a good URL, you can

 $ this-> params () - & gt; fromoutout (); Should use.   

See more details or

Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

java - Ajax call to jsp and jsp redirecting to further jsp -