|
|||
|
Hi, some one please help me with this.
I build a web system with ZF, when user sign up, will need to activate via email that the system send out with parameter in the url such as "http://zxc.com/userId/34kjklnkj4k3jn" , userId is the parameter and "34kjklnkj4k3jn" is the value. How I can read the parameter from the page? Consider my page have no class or function which $this->_request->getParam('userId); is not working. Thank you ![]() |
|
||||
|
Unless you setup a custom route http://zxc.com/userId/34kjklnkj4k3jn will route to the user-idController.
You need to include the controller and action in your url, http://zxc.com/auth/register/userId/34kjklnkj4k3jn or something similar. Then userId will be in the params array and getParam will find it.
__________________
Zend Framework Resources: Zend Webinars | Reference Manual | API Docs | Books | FreeNode: #zftalk Getting Started Tutorials: Getting started with ZF | Getting started with Zend Auth |
![]() |
| Thread Tools | |
| Display Modes | |
|
|