Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2008, 02:22 PM
Junior Member
 
Join Date: Jun 2008
Posts: 7
Default Adding a page extension to the url

I remember using the Code Igniter framework, which is what I used before I came across Zend, and it had an option in the config file to append an extension to all urls, so for example

application/controller/action/view/post1

would become application/controller/action/view/post1.html, or whatever extension you specified. Is there an option to do that in Zend?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-04-2008, 11:00 PM
Junior Member
 
Join Date: Oct 2007
Posts: 27
Default

I'm not sure there is. You could use a mod rewrite rule to remove the .html and pass the rest of the request URI to ZF. Then its just a case of appending .html to all of your links.

Why do you want to add .html though?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-05-2008, 02:02 AM
lucasm's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Įguas Claras-DF, Brazil
Posts: 17
Question controllers+views

Drac,

I think this is not necessary. We need to write controllers+views and the ZF's engine builds the output html page.

Do you really need to make this rewrite?

regards,
__________________
Lucas Mauricio C. e Martins
CR Vasco da Gama, my biggest passion!

Ajude a Combater o Spam! - Help fighting spam!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-07-2008, 09:26 PM
Junior Member
 
Join Date: Jun 2008
Posts: 7
Default

No, it's not important at all, I was just wondering if there was an easy way to do it, but it's no big deal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:22 PM.