How to split data access level in codeigniter

I used to write data access functions in the model itself. Now I want to separate data access from business logic. I use codeigniter as a framework. It seems like one way to do this is to use ORM, but I will have a performance penalty, I think.

Are there any general recommendations?

+3
source share
1 answer

See POEAA Data Source Architectural Patterns:

CodeIgniter , ActiveRecord, . QueryObject. - DAO , DataMapper. ORM. , ORM PHP World ActiveRecord, ORM. Doctrine 2 - , , DataMapper.

ORM ( ). ORM - . DataMapper . , . POEAA - .

, DataMapper CodeIgniter Overzealous DMZ. . google, , .

+5

Source: https://habr.com/ru/post/1772265/


All Articles