| 74 | | $fields = array('Catglossary.id', 'Catglossary.title', 'Catglossary.description', 'Catglossary.created', 'Catglossary.status'); |
| 75 | | $order = 'Catglossary.title'; |
| 76 | | $this->set('data', $this->Catglossary->findAll($conditions, $fields, $order)); |
| | 74 | $fields = array('Catglossary.id', 'Catglossary.title', 'Catglossary.description', 'Catglossary.created', 'Catglossary.status'); |
| | 75 | |
| | 76 | $order = 'Catglossary.title'; |
| | 77 | |
| | 78 | $this->set('data', $this->Catglossary->findAll($conditions, $fields, $order)); |
| 85 | | $conditions = array('Catglossary.user_id' => $this->Auth->user('id'), 'Catglossary.id' => $id); |
| 86 | | |
| 87 | | $fields = array('Catglossary.id', 'Catglossary.title', 'Catglossary.user_id', 'Catglossary.user_id', 'User.id', 'User.username'); |
| 88 | | $this->set('data', $this->Catglossary->find($conditions, $fields)); |
| | 87 | $conditions = array('Catglossary.user_id' => $this->Auth->user('id'), 'Catglossary.id' => $catglossary_id); |
| | 88 | |
| | 89 | $fields = array('Catglossary.id', 'Catglossary.title', 'Catglossary.user_id', 'Catglossary.user_id', 'User.id', 'User.username'); |
| | 90 | |
| | 91 | $this->set('data', $this->Catglossary->find($conditions, $fields)); |