Demo Application
Linked below is the Demo application that supports the Zend_Layout and Zend_View Enhancements webinar. This demo will be updated periodically to demonstrate ZL & ZVE new features.
Download
Download here: demo-website-zlayout-zve-0.1.tar.gz
Setup
You simply need to create a vhost and point it at the public directory contained within the projects folder.
I configured the vhost thus:
<VirtualHost 127.0.0.1>
DocumentRoot "C:\wamp\sites\demo-website-zlayout-zve\public"
ServerName layouttest.local
<Directory "C:\wamp\sites\demo-website-zlayout-zve\public">
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
When I load the site in the brower ZF is not interpreting any of the view variables. I'm getting stuff like this:
<?= $this->doctype() ?>
<html>
<head>
<?
$this->headTitle()->setSeparator(' - ');
$this->headTitle()->prepend('Zend_Layout & ZVE Demo');
echo $this->headTitle();
?>
...
That is, the layout .phtml files are rendering directly with no interpretation.
Ideas?
Thanks,
ken
Hi Ralph, the download seems to be corrupted, getting
cameron@XPS-SUSE:~/Zend/Examples> tar -zxf demo-website-zlayout-zve-0.1.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
Not my connection or browser, have tried from home with Firefox and over an SSH connection to my virtual server using Lynx.
Thanks.
~Cameron
I ran into the same error message. `file` reported that the file does
indeed contain gzip compressed data, so I tried the following:
$ gunzip demo-website-zlayout-zve-0.1.tar.gz
$ file demo-website-zlayout-zve-0.1.tar
demo-website-zlayout-zve-0.1.tar: gzip compressed data, was
"demo-website-zlayout-zve.tar", from Unix, last modified:
Fri Mar 21 00:31:35 2008
$ tar -zxvf demo-website-zlayout-zve-0.1.tar
That worked, so apparently the archive was compressed twice... A more
accurate filename would be demo-website-zlayout-zve-0.1.tar.gz.gz
Cheers,
Travis
ZF Home Page
Code Browser
Wiki Dashboard
Could you please additionally upload a zip version of the demo files.
Thank you.