Hello Mentor ,
I am a “NewB” in PHP and PHP Zend.
I am making a program while watching video tutorial.
Everything fine in video and i am also following the same instruction which r in video but i my coding an error has arised saying:
Notice: Undefined variable: option in C:\xampp\htdocs\articlemanager\html\index.php on line 26
I have pasted the code below for index.php file
<?php
/**
-
My new Zend Framework project
-
@author Jon
-
@version 1.0
*/
set_include_path(‘.’
. PATH_SEPARATOR . get_include_path()
. PATH_SEPARATOR . ‘…/library’
. PATH_SEPARATOR . ‘…/application/classes/’
. PATH_SEPARATOR . ‘…/application/models/’);
require_once ‘Zend/Controller/Front.php’;
Zend_Loader::registerAutoload();
$options = array(
‘layout’ => ‘layout’,
‘layoutContent’ => ‘…/application/views/layouts/’,
‘contentKey’ => ‘content’ );
new DbInitialize();
Zend_Layout::startMvc($option); //This is line No. 26
/**
- Setup controller
*/
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory(‘…/application/controllers’);
//$controller->throwExceptions(true); // should be turned on in development time
// run!
$controller->dispatch();
wat to do to remove the error and also the website is getting displayed without any CSS
Any help will be appriciated
Thanks in advance
Abha