A
A
Anton Babilya2016-04-15 10:48:30
PHP
Anton Babilya, 2016-04-15 10:48:30

How to attach ActiveRecord to SlimPhpFramework 3?

Perhaps someone came across? I found only an old article that fit the slim of the first version.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-04-15
Protko @Fesor

1) read the slim doc about dependency injection
2) read the doc of the active record implementation that you want to use, in terms of how to use it in general.
3) we think, do we need an active record? I recommend that you familiarize yourself with all the main approaches (table data gateway, row data gateway, active record, data mapper)

S
saorityan, 2016-04-15
@saorityan

Do everything the same as in the dock for the logger, only substituting the package of your choice for working with the database.
www.slimframework.com/docs/tutorial/first-app.html...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question