Thread: Zend Framework
View Single Post
Old 03-20-2009, 05:36 PM   #1 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default Zend Framework

Ye, I'm having some troubles with Zend framework.
More specificly the view files.

I have this:
index.phtml
Code:
<h1 align="center">
    Hello, Zend Framework MVC!
</h1>

<?php echo 'Testing'; ?>
It outputs "Hello, Zend Framework MVC", but not the "Testing" part.
I tried other stuff, but it's almost like the PHP won't evaluate or be proccessed by the server.

I'm using WAMP on localhost btw.

When I check the source code on the page, I even see the PHP code there, but with the php tags and the echo part aswell. Like an HTML comment.. or something.

Any clues?


Also, another problem I'm having is when creating the .htaccess file. Whenever I have an access file, it gives me 500 server error, no matter what's in the file. Do I have to enable mod_rewrite or anything? Why is it giving me that error?

Thanks!
__________________
Tanax is offline  
Reply With Quote