Skip to content

Article Add Error in Blog Authentication #3792

@eyoung100

Description

@eyoung100

If you follow Part 3, and add categories, the ArticlesController.php file contains:

 // Just added the categories list to be able to choose
// one category for an article
$categories = $this->Articles->Categories->find('treeList');
$this->set(compact('categories'));

The rewritten add function in the Authentication tutorial is missing the above snippet, which creates an empty dropdown/view mismatch.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions