Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2008, 05:59 PM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default Bootstrap problem

I followed the screencast from ZendFramework's site (several times) and I keep getting this error:

Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /zftest/library/Zend/Controller/Front.php on line 634

Does anyone have a solution?


My Directory Structure:

--zftest
|--apps
| |--controllers
| |--models
| |--views
|--library
|--pub
|--index.php


My Code:

<?php
// Error Reporting
error_reporting(E_ALL|E_STRICT);
ini_set('dispaly_errors','on');
// Modify include path
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '../library');
// Zend Framework Includes
require_once "Zend/Loader.php";
// Get the front instance
Zend_Loader::loadClass('Zend_Controller_Front');
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory('../apps/controllers');
$front->throwExceptions(true);
// Start
$front->dispatch();
?>

Thanks a lot for any help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-17-2008, 06:34 AM
kmg kmg is offline
Junior Member
 
Join Date: Mar 2008
Posts: 9
Default

Can you post line 634 from the file from your copy of the Zend Framework located at '/zftest/library/Zend/Controller/Front.php' ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2008, 08:26 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Your directory structure: your bootstrap file should be inside your 'pub' directory

PHP Code:
--zftest
|--apps
||--controllers
||--models
||--views
|--library
|--pub
||--index.php 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:17 AM.