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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2008, 08:55 PM
dele454's Avatar
Member
 
Join Date: Jun 2008
Posts: 46
Default Zend Framework: URL issue

I am using the Zend Framework to test some sample scripts. I just realised that in order to get to my view page my URLs need to look like this: 'http://app_home/index.php/user/gohome'

Why does the index.php have to be part of that URL? If i take it out then i get an Object not found error. How can i make my URLs be 'http://app_home/user/gohome'? Where user and gohome map to both my controller and action respectively. Why does index.php always needs to be there???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-21-2008, 11:51 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 94
Default

Does http://app_home/index/user/gohome work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-22-2008, 08:30 PM
dele454's Avatar
Member
 
Join Date: Jun 2008
Posts: 46
Default

Thanks for the reply. No it doesnt it gives me an Object not found error page

And when i ran this code
Code:
echo $front->getBaseUrl(); - where $front is my front controller
It printed out '/index.php' as my baseurl. I think that shouldnt be!!

Last edited by dele454 : 06-22-2008 at 08:34 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-22-2008, 10:57 PM
dele454's Avatar
Member
 
Join Date: Jun 2008
Posts: 46
Default

i tried out this post too but nothing still

Trouble setting Zend Framework on WAMP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-22-2008, 11:14 PM
dele454's Avatar
Member
 
Join Date: Jun 2008
Posts: 46
Default

I just discovered what the problem was :

In my http.conf file, for my Virtual Host specified AllowOverride was set to 'None'. It needs to be set to 'All' with that the your URL should now work as http://test/user/gohome. Whew!!

Last edited by dele454 : 06-22-2008 at 11:17 PM.
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:29 AM.