Programmer's Reference Guide

Create Your Project

Create A Layout

You may have noticed that the view scripts in the previous sections were HTML fragments- not complete pages. This is by design; we want our actions to return content only related to the action itself, not the application as a whole.

Now we must compose that generated content into a full HTML page. We'd also like to have a consistent look and feel for the application. We will use a global site layout to accomplish both of these tasks.

There are two design patterns that Zend Framework uses to implement layouts: » Two Step View and » Composite View. Two Step View is usually associated with the » Transform View pattern; the basic idea is that your application view creates a representation that is then injected into the master view for final transformation. The Composite View pattern deals with a view made of one or more atomic, application views.

In Zend Framework, Zend_Layout combines the ideas behind these patterns. Instead of each action view script needing to include site-wide artifacts, they can simply focus on their own responsibilities.

Occasionally, however, you may need application-specific information in your site-wide view script. Fortunately, Zend Framework provides a variety of view placeholders to allow you to provide such information from your action view scripts.

To get started using Zend_Layout, first we need to inform our bootstrap to use the Layout resource. This can be done using the zf enable layout command:

  1. % zf enable layout
  2. Layouts have been enabled, and a default layout created at
  3. application/layouts/scripts/layout.phtml
  4. A layout entry has been added to the application config file.

As noted by the command, application/configs/application.ini is updated, and now contains the following within the production section:

  1. ; application/configs/application.ini
  2.  
  3. ; Add to [production] section:
  4. resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"

The final INI file should look as follows:

  1. ; application/configs/application.ini
  2.  
  3. [production]
  4. ; PHP settings we want to initialize
  5. phpSettings.display_startup_errors = 0
  6. phpSettings.display_errors = 0
  7. includePaths.library = APPLICATION_PATH "/../library"
  8. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  9. bootstrap.class = "Bootstrap"
  10. appnamespace = "Application"
  11. resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  12. resources.frontController.params.displayExceptions = 0
  13. resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
  14.  
  15. [staging : production]
  16.  
  17. [testing : production]
  18. phpSettings.display_startup_errors = 1
  19. phpSettings.display_errors = 1
  20.  
  21. [development : production]
  22. phpSettings.display_startup_errors = 1
  23. phpSettings.display_errors = 1

This directive tells your application to look for layout view scripts in application/layouts/scripts. If you examine your directory tree, you'll see that this directory has been created for you now, with the file layout.phtml.

We also want to ensure we have an XHTML DocType declaration for our application. To enable this, we need to add a resource to our bootstrap.

The simplest way to add a bootstrap resource is to simply create a protected method beginning with the phrase _init. In this case, we want to initialize the doctype, so we'll create an _initDoctype() method within our bootstrap class:

  1. // application/Bootstrap.php
  2.  
  3. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  4. {
  5.     protected function _initDoctype()
  6.     {
  7.     }
  8. }

Within that method, we need to hint to the view to use the appropriate doctype. But where will the view object come from? The easy solution is to initialize the View resource; once we have, we can pull the view object from the bootstrap and use it.

To initialize the view resource, add the following line to your application/configs/application.ini file, in the section marked production:

  1. ; application/configs/application.ini
  2.  
  3. ; Add to [production] section:
  4. resources.view[] =

This tells us to initialize the view with no options (the '[]' indicates that the "view" key is an array, and we pass nothing to it).

Now that we have a view, let's flesh out our _initDoctype() method. In it, we will first ensure the View resource has run, fetch the view object, and then configure it:

  1. // application/Bootstrap.php
  2.  
  3. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  4. {
  5.     protected function _initDoctype()
  6.     {
  7.         $this->bootstrap('view');
  8.         $view = $this->getResource('view');
  9.         $view->doctype('XHTML1_STRICT');
  10.     }
  11. }

Now that we've initialized Zend_Layout and set the Doctype, let's create our site-wide layout:

  1. <!-- application/layouts/scripts/layout.phtml -->
  2. <?php echo $this->doctype() ?>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.   <title>Zend Framework Quickstart Application</title>
  7.   <?php echo $this->headLink()->appendStylesheet('/css/global.css') ?>
  8. </head>
  9. <body>
  10. <div id="header" style="background-color: #EEEEEE; height: 30px;">
  11.     <div id="header-logo" style="float: left">
  12.         <b>ZF Quickstart Application</b>
  13.     </div>
  14.     <div id="header-navigation" style="float: right">
  15.         <a href="<?php echo $this->url(
  16.             array('controller'=>'guestbook'),
  17.             'default',
  18.             true) ?>">Guestbook</a>
  19.     </div>
  20. </div>
  21.  
  22. <?php echo $this->layout()->content ?>
  23.  
  24. </body>
  25. </html>

We grab our application content using the layout() view helper, and accessing the "content" key. You may render to other response segments if you wish to, but in most cases, this is all that's necessary.

Note also the use of the headLink() placeholder. This is an easy way to generate the HTML for <link> elements, as well as to keep track of them throughout your application. If you need to add additional CSS sheets to support a single action, you can do so, and be assured it will be present in the final rendered page.

Note: Checkpoint
Now go to "http://localhost" and check out the source. You should see your XHTML header, head, title, and body sections.


Create Your Project

Comments

I have problem with this implementation, if i try to copy all like here and try browser.. i ll get this

Message: Invalid controller specified (guestbook)


Request Parameters:
array (
'controller' => 'guestbook',
'action' => 'index',
'module' => 'default',
)

there is some problem with controller, but i'm trying to do web app first time, and its to hard to handle this problem .. pls help..
I installed the Zend Framework via Zend Server CE and found out that the "zf enable layout" command didn't work.

The problem was on the version of the Zend Framework in Zend Server CE. I've downloaded the latest release of ZF and extracted it to C:\Program Files\Zend\ZendServer\share\ZendFramework and it solved the problem
@Ondrej Nedvidek

That only happens when you click the "Guestbook" hyperlink at the top right portion of the webpage, right?

That's because the guestbook controller was not created yet, check out the next of this guide:

http://framework.zend.com/manual/en/learning.quickstart.cre
When trying to create a layout using the zf cli I obtain:
An Error Has Occurred
Action 'enable' is not a valid action.
Hi, having the same problem with the zf enable layout command... anyone has found the solution, I know Joan did, but my question is did you have to reinstall the who Zend Server CE?

Thanks
A much quicker way to add doctype is to skip the Bootstrap.php file explained above, skip the resources.view[] =
line and just add this to application.ini:
resources.view.doctype = "XHTML1_STRICT"
While running the "zf enable layout" command, it through an following error.

" An Error Has Occurred
A project profile was not found.

Zend Framework Command Line Console Tool v1.10.2
Details for action "Enable" and provider "Layout"
Layout
zf enable layout"

Please help me?
@Mahesh

You mast be inside your project folder and than run this command


I have different problem. After enabling layout I get Internal Server Error. Why?
This is how I got the 1.10 version of zf:

sudo add-apt-repository ppa:zend-framework/ppa
sudo apt-get update
sudo apt-get install zend-framework
sudo apt-get install zend-framework-bin
sudo apt-get install libzend-framework-php
Hi,

I'm not able to view the mentioned header, footer and contents. I've not used the command zf enable layout. The Zend welcome page is still shown at that URL.Please guide me the steps to follow to identify the problem.

My application.ini looks like this:

[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.view[] =
resources.db.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "zendtest"
resources.db.params.password = "zendtest12"
resources.db.params.dbname = "zendtest"

[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.db.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "zendtest"
resources.db.params.password = "zendtest12"
resources.db.params.dbname = "zendtest"

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
resources.db.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "zendtest"
resources.db.params.password = "zendtest12"
resources.db.params.dbname = "zendtest"

If there is any query, please let me know.

Thank You,
Neeraj
Hi, I tried to use Zend Layout and used the "zf enable layout"

but isn't working, I got the message: "Action 'enable' is not a valid action.
So I have a look at my zf version with "zf show version" --> 1.9.6 and this is really myterios because i downloaded and installed the version 1.10.3

Can someone advice what I can do that this is working?

Thanks and regards, Wolfgang
I was also having trouble with the : "Action 'enable' is not a valid action.

I found that I had installed xampp and it came with it's own version of Zend

Once I replaced BOTH THE "ZEND" FOLED AND THE "zf.bat,zf.php" Files it all worked fine.
Hi Wolfgang.

I also had the same problem.

Whether you use the Zend server in windows?

When you installed Zend server, it added the system path. Try this, at the command prompt type PATH. There are "C:\Program Files\Zend\ZendServer\share\ZendFramework\bin".

You should change the system path to the new version. Or, just replace ZF on ZendServer\share\ZendFramework with new version.

Now, try "zf show version" :D
I can't get this to work! The page's source doesn't show the header, head, title... In fact, somehow my VirtualHost also doesn't work... So, I am using this URL instead http://quickstart.local/quickstart/public/

Any tips?
To all those who couldn't make 'zf' commands work (eg: zf enable layout).

The path to the Zend framework installation should be registered with the system.
Eg: In Windows a path variable should be set in the Environment Variables in the Advanced tab of System Properties in Control Panel. (eg: Control Panel->System->Advanced->Environment Variables in XP).

I'm using XAMPP. There is a small caveat in there which I'll share with my fellow XAMPP users. XAMPP has already has some logic by which all the folders inside it knows the existence of others. So If you go look inside it you can see there is already a Zend folder in the PEAR directory inside php folder. So all we need to add as a path variable is up to the php folder (eg: C:\xampp\php) and all will be well.

Check by typing "zf show version". It will print out the version of the Zend libraries inside the PEAR folder. (Whenever there is a new version of ZF is available I change the content inside this folder and everything is up to date).

Now for those who can make there virtual hosts work.
A better option is to add the following line in http.conf
include conf/extra/httpd-vhosts.conf

and add all the code given here for httpd.conf inside http-vhosts.conf (This is the preferred way since Apache 2.2)
Also somehow you will not be able to access your http://localhost/ as earlier so add an alias for localhost like localhosts.tld in etc/hosts file also. :-)
Great Zend Framework introduction, however, there are a few points that I would like to comment on. Is the doctype part of the article realy necessary at this stage? You can probably just insert the doctype in the layout.phtml file, and it always stays the same for all the website's pages. Instead I would appreciate some info on how to link seperate stylesheets and/or insert javascript files in the head of individual html pages, once the layout was created.
To get the virtual host working on MAc OS X Snow leopard, I did the following:
edit httpd.conf as shown below:

Listen 10088
Listen 80

<VirtualHost *:10088>
ServerName localhost
DocumentRoot /usr/local/zend/apache2/htdocs
</VirtualHost>

<VirtualHost *:80>
ServerName quickstart.local
DocumentRoot /usr/local/zend/apache2/htdocs/quickstart/public

SetEnv APPLICATION_ENV "development"

<Directory /usr/local/zend/apache2/htdocs/quickstart/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

edit hosts file (etc/hosts) as shown below:

127.0.0.1 localhost
127.0.0.1 quickstart.local

now I have my original host at port 10088 and the quickstart project served from port 80
Hi buddy,
I am a novice for ZF. I followed your instructions from start to here(layout). just now when I browse my proj: from localhost, the layout/layout.phtml is not working. It was show only the index/index.php only.

I am using XAMPP 1.7.3 ( window)

Please help me. I am waiting your advice.

Thank
Solved the problems with the Zend Tools commands.

I use Windows 7
Xampp 1.7.2
Zend Framework 1.10.5

There is another zf.bat in xampp/php. Delete it and set the enviroment variable to your path/bin
My is c:\zend\bin

All commands are working now without problem...and the solution was very easy.

use:
windows xp
xampp v.1.7.3
zf show version = zend framework version: 1.9.6
virtualhost run

"zf enable layout" = " Action 'enable' is not a valid action."

what is the problem?

thx@all
use:
windows xp
xampp v.1.7.3
zf show version = zend framework version: 1.9.6
virtualhost run

"zf enable layout" = " Action 'enable' is not a valid action."

what is the problem?

thx@all
use:
windows xp
xampp v.1.7.3
zf show version = zend framework version: 1.9.6
virtualhost run

"zf enable layout" = " Action 'enable' is not a valid action."

what is the problem?

thx@all
The project file was not found problem solution that worked for me:
zf create project quickstart
zf create config

-- copy the files in the created project (application map, xml file etc.) to the bin
zf enable layout
There should be remarked that you need to create the css folder under public and add global.css into that folder. A new user may get confused if you just assume that that should be known by the programmer where to place things.

hello
it very useful to me...hope a new guidelines will soon.
For all of you on MAC OSX who are having problems with the

zf enable layout, the fix is quite simple...in fact, it's not even a fix, it's just common sense that wasn't so common when I first started...

So lets get the terminal open and create our zf alias using the zf.sh (if you're on this page you should already know how to do this)

In my case:
alias zf=/usr/local/zend/share/ZendFramework/bin/zf.sh

After this you should be able to type in "zf show version" and the version will appear.

After that, I put in "zf enable layout", but got an error (Project profile not found)

Here's what you simply need to do

use a "cd" (change directory) to that project directory (you should see an xml document in it, .zfproject.xml in my case. That's the profile it's looking for.

In my case:

cd /usr/local/zend/apache2/htdocs/quickstart

THEN go ahead with "zf enable layout"

Good luck!
I am using xampp, XP, Zend Framework 1.10.7. I struggled trying to get 'zf enable layout' to work. None of the above helped. I looked in zf.php and found the following:

******** ZF ERROR *******
In order to run the zf command, you need to ensure that Zend Framework
is inside your include_path. There are a variety of ways that you can
ensure that this zf command line tool knows where the Zend Framework
library is on your system, but not all of them can be described here.

The easiest way to get the zf command running is to allow is to give it
the include path via an environment variable ZEND_TOOL_INCLUDE_PATH or
ZEND_TOOL_INCLUDE_PATH_PREPEND with the proper include path to use,
then run the command "zf --setup". This command is designed to create
a storage location for your user, as well as create the zf.ini file
that the zf command will consult in order to run properly on your
system.

I added ZEND_TOOL_INCLUDE_PATH to my environment variables (with the value C:\zf\library in my case), restarted the command shell, ran zf --setup, and now it all works.

Hope this helps someone else who is struggling.



Not able to the XHTML header, head, title, and body sections.
the zf enable layout does not function!!!
In which directory do i have to execute it?

have made all the correction above
it solved this problem by renameing a other "zend" package/folder in the xampp\php\PEAR folder and now zf enable layout funtions

I'm a Windows 7 user and I just started to work through this tutorial.

I had problems with zf enable layout also. So after I ran it, I created the new directory myself and I created a new empty file called:

application/layouts/scripts/layout.phtml

I followed the rest of the instructions and it is working fine. I could not get the virtual host to work (last lesson), however I just tweaked the httpd.conf file to look like this. Of course, this might bite me later, but so far it is okay. Also, I'm using port 8080 and it works nicely.

....
DocumentRoot "C:/ZendFramework-1.10.8/bin/quickstart/public"
....
<Directory "C:/ZendFramework-1.10.8/bin/quickstart/public">
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Interestingly, if the global.css file located in /public/css/ is created, yet empty, the application will look for a controller named "css" with the action "global.css".

If the /public/css/global.css has any text in it whatsoever, there will not be any attempt made to find a controller named "css".
I think that if a reference to a css/global.css file is made in the code snippet, something needs to be said about it- like, where it comes from, if it is generated or if the programmer needs to write it.

When I first read the code snippet, I thought that css/global.css was generated automatically (as some kind of default style) by the zf tool at layout creation time. But then, I didn't find a global.css file anywhere, so I thought- hmm, am I suppose to create this file? If so, how come there's no mention of it?
A simple solution for Windows XP and XAMPP!

Is is how "Nigel King on: 2010-08-11 09:48:07" wrote:

Add ZEND_TOOL_INCLUDE_PATH to your environment variables with path to the Zend-Library (eg: C:\Zend\library\)

Update your xampp Zend directory with the latest version of Zend
(eg: C:\xampp\php\PEAR\Zend\)

Check the directory to your "User Settings" and look for the folder ".zf".
In my case it doesnt exist and dont try to create it with the Windows Explorer.
It won't work.
Start the "cmd"-shell, go to C:\User settings\your_username\ .
Then type "mkdir .zf"

Next, change to your project-directory where you find the ".zfproject.xml" and type
"zf enable layout"

That's all!

Perhaps you have to enter "zf --setup" before enabling the layout.

im sorry but i think it's important for me to say this, but this might sound like spamming, it is not or maybe im doing it wrongly, if so, someone be nice and email me at equatorlounge[at]gmail[dot]com..

i had to manually type in the lines:
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"

and create the folders layouts/scripts with the layout.phtml inside

i cant believe im the only one going through this cos ive googled like hell and NOT found the error i mentioned in the previous threads ive posted

to note im using xampp-32bit on windows7 64bit, but i didnt find a 64-bit version on the apachefriends site

it's quite discouraging in the end. im gonna try one last day and shift to CakePHP just like everyone else
IN XAMPP... removing folder of zend from the php folder allows the enable to work.

but in my case it says layout is not a valid provider??? any help???
If the "zf enable layout" command doens't work just insert the line on the next STEP of the tutorial, don't get stucked by a little error! And create the proper directories of course... then go on with the tutorial!
excuse me , I have a trouble when i open localhost but it has always displayed only project quickstart but i have another project but i can't reach them?
Error::::::

You don't have permission to access /quickstart/public/ on this server.
when i add this

protected function _initDoctype()
{
$this->bootstrap('view');
$view = $this->getResource('view');
$view->doctype('XHTML1_STRICT');
}

to my Bootstrap.php my page output bacame plain balnk page.

where is my error? cant find it
id just follow the steps
I also had a problem "Action 'enable' is not a valid action" and I resolve it by deleting XAMPP.
Mateyo,

The documentation here is wrong. Instead of adding to the application.ini:

resources.view[] =

Instead add:

resources.view[] = ""

And make sure that it is in the top [production] area of the application.ini

It is also worth turning on error reporting so you can see the error (and google it like I did!):

phpSettings.display_errors = 1
When I called the command "enable layout zf", the following error occurred:

Fatal error: Cannot redeclare class zend_application_resource_resource. If this code worked without the Zend Optimizer+, please set zend_optimizerplus.dups_fix=1 in your php.ini in /usr/share/php/libzend-framework-php/Zend/Application/Resource/ResourceAbstract.php on line 26

Hi guys,
I also have a problem.. I followed the complete tutorial till the end of "create layout". If I want to start my project /quickstart/public I just get the HTTP error 500 screen... what shall I do?
It should be explained, what "bootstrap resources" are. All we get to know is that they are added. But why? What kind of resources are there?

Also. People really should know that resources.view[] is an array. But why is an array required? Why can't I just use resources.view?

Also resources.view.doctype = "XHTML1_STRICT" seems a lot more logical to me than doing all that stuff in the bootstrap, which is also not explained why it is done, just that it is done this way.
If I want to set a layout per module, how is it done?
I can't set them on the ini.
They have to be set on each module's bootstrap.
But how?

(or is there any other way that I've missed?)
when i am running the command 'zf enable layout', my project is showing a warning and a fetal error saying Fatal error:

Cannot redeclare class zend_application_resource_resource. If this code worked without the Zend Optimizer+, please set zend_optimizerplus.dups_fix=1 in your php.ini in /usr/share/php/libzend-framework-php/Zend/Application/Resource/ResourceAbstract.php on line 26

when i am removing the settings of layout from my project, it is again working fine.
I've followed the quickstart to setup my layout. However, when I browse to http://localhost I get a blank page!

The document root in httpd.conf is set to /var/www and I have a public folder therein where I copied index.php from my project directory, also stored on the server. I added the two lines to application.ini
resources.layout.layoutPath=APPLICATION_PATH"/layouts/scripts"
resources.view[]=""

Bootstap.php contains the function _initDocType as
$this->bootstrap($view);
$view=$this->getResource($view);
$view->doctype('XHTML1_STRICT');

/applicatoin/layouts/scripts/layout.phtml is pretty vanilla only referencing a stylesheet and having a <h1> tag. After the closing body tag, I have <?php echo $this->layout()->content; ?>

What further changes should I make to ensure that my layout is served when the home page is browsed?

Thanks,
Sid
I added an action to the controller and the the new action page does not point the css file to the public folder.

the new action page points the css file to:

http://mysite/pubic/index/style/main.css

instead of pointing to : http://mysite/public/style/main.css

Any idea why?

Thanks in advance

While adding view resource to application.ini you should have to assign empty string, otherwise it will through exception zf 1.10.11 like

resources.view[] = ""
Uh, the markup generated does not validate. Nowhere close. There are missing attributes and a big honking style element in the body.

Surely this is a temporary state of affairs and will be fixed later on in the tutorial. Right?
I have some problem
It looks like :

Fatal error: Call to a member function doctype() on a non-object in /var/www/quickstart/application/Bootstrap.php on line 9 Call Stack: 0.0007 629192 1. {main}() /var/www/quickstart/public/index.php:0 0.0390 2077440 2. Zend_Application->bootstrap() /var/www/quickstart/public/index.php:25 0.0390 2077520 3. Zend_Application_Bootstrap_BootstrapAbstract->bootstrap() /usr/share/php/libzend-framework-php/Zend/Application.php:355 0.0391 2077520 4. Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap() /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php:582 0.0399 2078672 5. Zend_Application_Bootstrap_BootstrapAbstract->_executeResource() /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php:618 0.0399 2079328 6. Bootstrap->_initDoctype() /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php:665
I believe that the problem people are having with the Page Not Found: Invalid Controller Specified (mine is for quickstart...), is because as yet nothing has been set in the IndexAction.

I may be wrong. But I think this tutorial is pretty poorly constructed for a "quickstart"!


Also, not sure why I'm asked to fill in "the 5 letters that you see below." on this form when actually there are two 7 letter words shown!! Dear, oh dear.
This documentation is shockingly bad. It throws a dozen settings into a config file that gets used by something and the settings get referenced by something and there definitions comply with some format, but what all those somethings are, are not explained and no reference to information on them are made.

Using this framework is like delving into a black box of trial and error 'tweaks' to the default content provided in these supposed 'help' files.

Any framework or component is essentially useless without good documentation, or examples and this documentation is an example of how to ruin a good product.
check this url http://www.waytocode.com/?cat=5 for exclusive Zend Framework tutorials, you will get every question's answer here. Site is dedicated to Zend Framework and developers.
We needn't use "zf create layout".

1. Create manually directories and file: application/layouts/scripts/layout.phtml
2. Go to application.ini, add two lines into [production] area and sure again that these two lines are in [production] area:
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.view[]=

3. copy code and paste to Bootstrap.php and layout.phtml file.

If your project worked correctly before, it will run.

+ Add A Comment

Please do not report issues via comments; use the ZF Issue Tracker.

If you have a JIRA/Crowd account, we suggest you login first before commenting.

  • BBCode is allowed in the comment markup

  • Select a Version

    Languages Available

    Components

    Search the Manual