Skip to end of metadata
Go to start of metadata

<h1>Demo Application</h1>

<p>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.</p>


<p>Download here: <ac:link><ri:attachment ri:filename="demo-website-zlayout-zve-0.1.tar.gz" /></ac:link></p>


<p>You simply need to create a vhost and point it at the public directory contained within the projects folder.</p>

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 29, 2008

    <p>Could you please additionally upload a zip version of the demo files.</p>

    <p>Thank you.</p>

  2. Apr 02, 2008

    <p>I configured the vhost thus:</p>

    <p> <VirtualHost><br />
    DocumentRoot "C:\wamp\sites\demo-website-zlayout-zve\public"<br />
    ServerName layouttest.local<br />
    <Directory "C:\wamp\sites\demo-website-zlayout-zve\public"><br />
    Allow from all<br />
    AllowOverride All<br />
    </Directory><br />

    <p>When I load the site in the brower ZF is not interpreting any of the view variables. I'm getting stuff like this:</p>

    <p> <?= $this->doctype() ?></p>

    <p> <html><br />
    <head><br />
    <?<br />
    $this->headTitle()->setSeparator(' - ');<br />
    $this->headTitle()->prepend('Zend_Layout & ZVE Demo');<br />
    echo $this->headTitle();<br />
    ?><br />

    <p>That is, the layout .phtml files are rendering directly with no interpretation.</p>


    <p>Thanks,<br />

    1. Apr 04, 2008

      <p>Hi Ken,</p>

      <p>please check the setting of "short_open_tag = On" in php.ini.</p>


  3. Apr 06, 2008

    <p>Hi Ralph, the download seems to be corrupted, getting</p>

    <p>cameron@XPS-SUSE:~/Zend/Examples> tar -zxf demo-website-zlayout-zve-0.1.tar.gz <br />
    tar: This does not look like a tar archive<br />
    tar: Skipping to next header<br />
    tar: Error exit delayed from previous errors</p>

    <p>Not my connection or browser, have tried from home with Firefox and over an SSH connection to my virtual server using Lynx.</p>



    1. Apr 07, 2008

      <p>I ran into the same error message. `file` reported that the file does<br />
      indeed contain gzip compressed data, so I tried the following:</p>

      <p>$ gunzip demo-website-zlayout-zve-0.1.tar.gz<br />
      $ file demo-website-zlayout-zve-0.1.tar<br />
      demo-website-zlayout-zve-0.1.tar: gzip compressed data, was<br />
      "demo-website-zlayout-zve.tar", from Unix, last modified:<br />
      Fri Mar 21 00:31:35 2008<br />
      $ tar -zxvf demo-website-zlayout-zve-0.1.tar</p>

      <p>That worked, so apparently the archive was compressed twice... A more<br />
      accurate filename would be demo-website-zlayout-zve-0.1.tar.gz.gz</p>



  4. Jun 27, 2008

    <p>Wow @ 7.2Mb</p>

    <p>Next time I suggest doing an SVN Export before compressing.<br />
    Would drop the uncompressed copy of the library from 37Mb to 15Mb</p>

    <p>:: Kev</p>