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

hello

I am trying to understand how view_cell work. I am reading view_cell doc guide and then check CI system. but I do not understand properly that how the interface can create an object?

File : System/view/cell.php

Code:
class Cell
{
    /**
     * Instance of the current Cache Instance
     *
     * @var CacheInterface
     */
    protected $cache;

    //--------------------------------------------------------------------

    public function __construct(CacheInterface $cache)
    {
        $this->cache = $cache;
    }

Can anyone explain in details how cell construct work?
Reply


Messages In This Thread
CacheInterface In view cell - by milan alphansotech - 11-15-2016, 11:55 PM
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