I have the following code, which works fine on live site, but not on localhost.
$status = $this->getRequest()->getQuery('status');
I have a URL like this:
http://localhost:888//questions/ask?status=10
I printed the value of status, which is always nil. I am new to Zend framework and could not find a solution to this on net, looks strange to me. Any thoughts? Thanks.
[FIXED]
I had wrong RewriteRule that caused the problem. There was an unwanted '?' after index.php
in RewriteRule line. It was my mistake I added this, because other frameworks like CodeIgniter user '?' in RewriteRules. The corrected RewriteRule line is:
RewriteRule ^(.*)$ /index.php/$1 [L]
I wonder if I can choose this as accepted answer.. :-)