0

I am trying to configure my db (connection strings below)

return array(
'default' => array(
    'connection'  => array(
        'dsn'        => 'mysql:host=Webdatabase; dbname=web_btw',
        'username'   => 'btw_user',
        'password'   => 'pass12',       
    ),
),
);

However, I receive the following PHPErrorException notice (in one of my view files):

<? if (isset($error)): ?><p class="error-msg"><?= $error ?></p><? endif ?>

If possible, I would like to know why it is going to this error message when all I want is to establish db connection to my fuelphp application.

Thank you

J4sum
  • 15
  • 9
  • Could you paste the error message into your question? – Jonnix Aug 31 '18 at 16:54
  • 2
    Possible duplicate of ["Notice: Undefined variable", "Notice: Undefined index", and "Notice: Undefined offset" using PHP](https://stackoverflow.com/questions/4261133/notice-undefined-variable-notice-undefined-index-and-notice-undefined) – aynber Aug 31 '18 at 16:55

1 Answers1

0

Thank you for the suggestions but I have solved the problem by enabling PHP short tags in php.ini to correct the error.

J4sum
  • 15
  • 9