Search found 2 matches

by jona4402
Wed Mar 26, 2014 2:31 pm
Forum: Zend Framework
Topic: Having trouble passing variable to closure
Replies: 2
Views: 1168

Re: Having trouble passing variable to closure

Code: Select all

    public function getProducts($id)
    {

    	$id  = (int) $id;
        $id = '%'.$id.'%';
        $rowset = $this->tableGateway->select(function (Select $select) use($id) {
        	$select->where->like('PR_PROD', $id);
        });
    	 
        return $rowset;
    }
by jona4402
Wed Mar 26, 2014 2:27 pm
Forum: Zend Framework
Topic: how module config cache works with closoures?
Replies: 1
Views: 1036

how module config cache works with closoures?

as I understand module config cache does not cache closures so how zf will behave? it would still then generate whole config just for one not cashed clousure? or what?