How can i call basePath helper in controller in ZF 2. I have to redirect to a particular url in which i need base path. return $this->redirect()->toUrl($basePath.'/application/rent/search');
标签:
zend-framework2
相关问题
- Why does recursive submodule update from github fa
- How to pass options/params to formCollection field
- Compress html output from zend framework 2
- zend smtp mail crashes after 100+ mails
- 404 HTTP errors not being rendered in JSON using Z
相关文章
- Zend Framework 2 Forms Array notation for drop dow
- Use spiffy navigation with zfcrbac module
- Best practice to call another controller action fr
- How to use Zend Service Amazon?
- Difference between init() and onBootStrap() in Zen
- Does Zend Framework 2.0 leave out the amazon s3 li
- Zend Framework 2 Flash Messenger returning no mess
- doctrine migrations 2 + zend framework 2 = is it p
try
in
OR
http://project.com/profile
returns ""
http://localhost/~limonazzo/public/profile
returns /~limonazzo/public/
The full base url (http://...) can be determined from within the controller as follows:
Here's an easy method to make all view helpers available from within the controllers. So you should be able to use the following: