Solved

Zend Framework first try: indexController / default?

Posted on 2009-04-06
3
369 Views
Last Modified: 2013-12-13
I'm trying to get the first pages working in Zend Framework. The framework does work, I have the helloworld page working. I'm using Zend Framework for Eclipse, and XAMPP on a Windows Vista machine. Now I've tried to create new pages using an online tutorial.

http://akrabat.com/zend-framework-tutorial/

I've created the pages as the manual says. The only difference I see is the "default" application. I don't know if I should use that or not. I have used it, but couldn't get the pages working. I have edited the .htaccess file, and renamed it to _htaccess, and added "AccessFileName _htaccess" to httpd.conf to be sure. Maybe the url-rewriting is the problem, I don't know.

I constantly get 404 errors when accessing pages like localhost/index/edit (as the tutorial says should be possible).
0
Comment
Question by:R7AF
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Yumitsu earned 500 total points
ID: 24079562
Make sure that index.php catches page requests.

If not, it's a problem with .htaccess.
0
 
LVL 13

Author Comment

by:R7AF
ID: 24079646
I got it working. It turned out to be the httpd.conf, where the mod_rewrite wasn't enabled (although I thought I had done that), as well as the .htaccess allow rule.
0
 
LVL 2

Expert Comment

by:Yumitsu
ID: 24083544
I thought it was a problem with mod_rewrite since apache doesn't throw 500 error when module not loaded but developer tries to use it.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now