@@ 75-87 (lines=13) @@ | ||
72 | * |
|
73 | * @return void |
|
74 | */ |
|
75 | public function create() |
|
76 | { |
|
77 | $this->loadModel('Content.ContentTypes'); |
|
78 | $types = $this->ContentTypes->find() |
|
79 | ->select(['id', 'slug', 'name', 'description']) |
|
80 | ->all(); |
|
81 | ||
82 | $this->title(__d('content', 'Create New Content')); |
|
83 | $this->set('types', $types); |
|
84 | $this->Breadcrumb |
|
85 | ->push('/admin/content/manage') |
|
86 | ->push(__d('content', 'Create new content'), ''); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Shows the "new content" form. |
@@ 31-43 (lines=13) @@ | ||
28 | * |
|
29 | * @return void |
|
30 | */ |
|
31 | public function index() |
|
32 | { |
|
33 | $this->loadModel('Content.ContentTypes'); |
|
34 | $types = $this->ContentTypes->find() |
|
35 | ->select(['id', 'slug', 'name', 'description']) |
|
36 | ->all(); |
|
37 | ||
38 | $this->title(__d('content', 'Content Types')); |
|
39 | $this->set('types', $types); |
|
40 | $this->Breadcrumb |
|
41 | ->push('/admin/content/types') |
|
42 | ->push(__d('content', 'Content Types'), '#'); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * Create new content type. |
@@ 29-39 (lines=11) @@ | ||
26 | * |
|
27 | * @return void |
|
28 | */ |
|
29 | public function index() |
|
30 | { |
|
31 | $this->loadModel('User.Acos'); |
|
32 | $roles = $this->Acos->Roles->find()->all(); |
|
33 | ||
34 | $this->title(__d('user', 'User Roles List')); |
|
35 | $this->set(compact('roles')); |
|
36 | $this->Breadcrumb |
|
37 | ->push('/admin/user/manage') |
|
38 | ->push(__d('user', 'Roles'), ['plugin' => 'User', 'controller' => 'roles', 'action' => 'index']); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Add a new role. |