Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- */
- public function myarticles()
- {
- $this->paginate['Articles']['order'] = ['Articles.created, Articles.modified DESC'];
- $this->paginate['Articles']['contain'] =
- [
- 'ArticleCategories',
- 'Users',
- 'Tags',
- ];
- $data['user_id'] = $this->UserId;
- $this->paginate['Articles']['finder'] = ['MyArticles' => $data];
- $this->set('articles', $this->paginate($this->Articles));
- $this->set('_serialize', ['articles']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement