|
|||
|
Hi,
Maybe I encountered a bug in php or zfw. but url: http://localhost/admin/edit/id/5 $id = $this->_request->getParam('id'); returns 5 $id == 5 trying to typecast gives me 0 $id = (int)$this->_request->getParam('id'); $id == '' Any thoughts on what I'm doing wrong? How can I sanatise the data, as its used for a database query, e.g. select * from table where id = $id. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|