Category: Models & ORM

Q: Cakephp use query builder in component

How to use Cakephp query builder in component? (PostutilsComponent.php)

//controller

public function blogPost($post_id = null)
{

    $this->set('recent_posts', $this->Postutils->getRecentPosts());
}

0 Answers

Version: 3

No answers yet!

The community needs your help!

Post your Answer