Welcome Guest, Not a member yet? Register   Sign In
CacheInterface In view cell
#4

Well, which parts do you not understand? You should be able to follow the code through the paths relatively easily. If there's language constructs you're not familiar with that's one thing.

Basically, the view_cell function calls the Config\Services method, viewcell(), which returns an instance of the CodeIgniter\View\Cell class. Within the services function, it passes it an instance of whatever the currently configured Cache engine is.

The relevant methods you're probably getting confused by are:

- Services::cache
- Services::viewcell
Reply


Messages In This Thread
RE: CacheInterface In view cell - by kilishan - 11-16-2016, 07:02 AM
RE: CacheInterface In view cell - by kilishan - 11-16-2016, 08:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB