Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function eden() #1

Closed
wasimkham opened this issue Oct 28, 2013 · 7 comments
Closed

Call to undefined function eden() #1

wasimkham opened this issue Oct 28, 2013 · 7 comments

Comments

@wasimkham
Copy link

I've just installed the latest version via composer and i'm assuming that this package is set up to autoload.

I'm using the first step in your documentation:

$database = eden('mysql', '[HOST]' ,'[DBNAME]', '[USER]', '[PASS]'); //instantiate

But I get php error:

Fatal error: Call to undefined function eden() in /index.php on line 8

Do I have to do something different when using Composer?

@adin234
Copy link

adin234 commented Oct 29, 2013

is eden already loaded?

@techjewel
Copy link

Hi, I am getting the same issue. Would you please let me know how to load eden?
I already load composer autoload.
@adin234

@mbuyco
Copy link

mbuyco commented May 20, 2015

Getting the same error here

@k0pernikus
Copy link

+1

1 similar comment
@withnall
Copy link

+1

@cblanquera
Copy link

ahh sorry guys forgot to add the precursor to making sure eden function is enabled. I'll make sure ill update the doc.

Instantiate the controller with the below.

\Eden\Core\Control::i();

Though you don't need the control for anything in particular, the eden function is in that file. I'll come up with a better way of doing this.

Eden-PHP/Core@8922380

Will update core later. Thanks for the report and sorry for the really long delay. Still trying to workout my schedule :)

cblanquera pushed a commit to Eden-PHP/Core that referenced this issue Nov 17, 2015
@cblanquera
Copy link

Created new tag: https://github.com/Eden-PHP/Core/releases/tag/4.0.2

Which will allow you to use eden() by adding Eden::DECORATOR; somewhere on top of your code.

Will update the docs soon :) thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants