Skip to end of metadata
Go to start of metadata

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.

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

    Could you please additionally upload a zip version of the demo files.

    Thank you.

  2. Apr 02, 2008

    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

    1. Apr 04, 2008

      Hi Ken,

      please check the setting of "short_open_tag = On" in php.ini.

      Wolfgang

  3. Apr 06, 2008

    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

    1. Apr 07, 2008

      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

  4. Jun 27, 2008

    Wow @ 7.2Mb

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

    :: Kev