andrewelkins / Laravel-4-Bootstrap-Starter-Site

Laravel 4 Starter Site is a basic blog application using several nice community packages.
1.77k stars 605 forks source link

PHP Notice: Constant LARAVEL_START already defined in /opt/bitnami/frameworks/laravel/bootstrap/autoload.php on line 3 #416

Closed leeeunlim closed 9 years ago

leeeunlim commented 9 years ago

Where is already defined constant LARAVEL_START?

veb commented 9 years ago

public/index.php

line 21 loads the autoloader for bootstrap.

bootstrap/autoload.php

line 3 on bootstrap/āutoload.php has define('LARAVEL_START', microtime(true));

Hope that helps.

leeeunlim commented 9 years ago

Thanks a lot :) but...i knew that... I want to know another constant LARAVEL_START defined.. and If i find that, should i comment that ???

veb commented 9 years ago

You could do something like this:

<?php
/* Note the use of quotes, this is important.  This example is checking
 * if the string 'TEST' is the name of a constant named TEST */
if (defined('TEST')) {
    echo TEST;
}
?>

taken from PHP documentation

leeeunlim commented 9 years ago

Thanks Thanks Thanks!!!......but sorry i can't use that method.... because i cant see nothing in my server ip... if i write that method...i can't see in my server.......

leeeunlim commented 9 years ago

I'm sorry...this is not a main problem....All of this is worked..... i'm stupid. ..............Thanks !!!