Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $name = $this->ServiceCategories->get($id)->name;
- $serviceCategory = $this->ServiceCategories->Services->find('all')->where(['service_category_id'=>$id])->contain('Pictures');
- $this->paginate = [
- "limit"=>4,
- ];
- $this->paginate($serviceCategory);
- $this->set(compact('name' , 'serviceCategory'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement