Error arising in PHP Zend coding while displaying index page

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


  • My new Zend Framework project

  • @author Jon

  • @version 1.0
    . PATH_SEPARATOR . get_include_path()
    . PATH_SEPARATOR . ‘…/library’
    . PATH_SEPARATOR . ‘…/application/classes/’
    . PATH_SEPARATOR . ‘…/application/models/’


require_once ‘Zend/Controller/Front.php’;


$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->throwExceptions(true); // should be turned on in development time

// run!

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

you are declaring $options as an array but on line 26 you have $option that has not been defined or set