Welcome Guest, Not a member yet? Register   Sign In
Something is missing?
#1

[eluser]Unknown[/eluser]
If you do not add
Code:
define('BASEPATH','.');
to your {application}/doctrine file juste after the PHP open tag, it will not work because of the
Code:
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
in your database/config.php file.

Is it correct?
#2

[eluser]Jondolar[/eluser]
That is defined upon bootstrapping of CI. You typically don't have to define it yourself.
#3

[eluser]Dam1an[/eluser]
Its defined in index.php, the reason for having it in every page is to stop people accessing other php files directly, as you need to go via index.php to define it so you can use anything Smile

Do you ever invoke doctrine.php without using the front controller?
#4

[eluser]Evil Wizard[/eluser]
also it will generate a php fatal error if you try to define a global constant that already exists

the config/database.php is part of CI and so by the time the config for your database is loaded the "BASEPATH" has been defined.
#5

[eluser]adwin[/eluser]
what is the solution so that doctrine can run ?




Theme © iAndrew 2016 - Forum software by © MyBB