Jump to content

Recommended Posts

Hi,

I am trying to create a project with the ZF to get going. To begin with, what I do is very simple. I create a project through the zend command line then I try to connect to the resulting site. Sounds simple right?

 

My zend library is on /library/webserver/documents/zend (I'm on a mac)

I created a project called test at the same location. Consequently, the base folder for my application is /library/webserver/documents/test.

 

Now, I'm supposed to be able to point my webserver at that address and see a welcome page. When I go to http://localhost/test/public/ I get absolutely nothing. It's a blank and nothing comes up when I view source. I don't really know what I'm doing wrong at this point. Anyone has a clue what's happening and I can get unstuck?

 

Thanks,

JR

 

 

Link to comment
https://forums.phpfreaks.com/topic/159558-solved-zend-startup-project/
Share on other sites

Also if I replace the index.php file by an index.php with phpinfo(); in it it works fine so it seems to be the content of the current index file that's screwed up. What's funny is I didnt change anything in that file. It's the standard that is created when you create project with ZF.

The current content of the file is below

<?php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Application.php';  

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();
            
            
?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.