Author Topic: Zend Framework Routing: HTML Extension  (Read 1362 times)

0 Members and 1 Guest are viewing this topic.

Offline GregL83Topic starter

  • Enthusiast
  • Posts: 119
    • View Profile
Zend Framework Routing: HTML Extension
« on: November 02, 2009, 03:57:25 AM »
So i don't know about anyone else, but I think the Zend Framework docs are extremely difficult for new users.  I have done a lot of searching on google for what seems to be a trivial issue.  I would like to add the .html extension onto the routing.  I have one forum that mentions two sites for custom zend routing, but I have tried many methods without any results.

I dont' want to create an ini file.  I would like to use Zend_Controller_Router_Route or Regex version with the front controller.  Everytime i have tried a method to add my route, every page seems to take me directly to controller index action index.  I have deleted the custom routing and tried with the same results.  I also am trying to keep the rest of the routing as it is normally.  Simply, I want to add the extension without changing anything else.

Anyone have this example???

Thanks in advanced/

Offline pastcow

  • Enthusiast
  • Posts: 56
    • View Profile
    • PHP programming
Re: Zend Framework Routing: HTML Extension
« Reply #1 on: November 02, 2009, 05:22:00 AM »
Yeah, i have to agree the Zend framework isnt exactly well documented, their "quickstart" tutorial is more a demo of MVC rather than telling you how to use the framework.

Ive just completed my first site using the Zend Framework and ive gotta say I actually quite like it now. Whats the code you are trying at the moment to get your Zend_Controller_Router_Route to work?


Offline philoertel

  • Irregular
  • Posts: 4
    • View Profile
Re: Zend Framework Routing: HTML Extension
« Reply #2 on: November 02, 2009, 01:46:41 PM »
Could you post your .htaccess file and the Zend_Router code you've written?
Phil Oertel
Application Developer
Soliant Consulting