开发者

Create another entry point page in Zend framework

开发者 https://www.devze.com 2023-01-31 05:46 出处:网络
I have one question. In zend framework index.php in public folder is an entry point to start. How i can make another .php page say mydata.php in public folder that would work same开发者_如何学运维 as

I have one question. In zend framework index.php in public folder is an entry point to start. How i can make another .php page say mydata.php in public folder that would work same开发者_如何学运维 as index.php but with little customized code?

For example when index.php loads every time it will load index controller and index action but when mydata.php is requested it should load, for example, data(any name) controller and index action of that controller.

Any help would be highly appreciated.

Ashish Joshi


You should have an htaccess file setup that redirects all requests to the front controller usually in public/index.php. So, with this setup you won't be able to access mydata.php, but if you create a mydata controller, you should be able to access it like: example.com/mydata

0

精彩评论

暂无评论...
验证码 换一张
取 消