mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-20 09:35:59 +02:00
Initial work on contact create
This commit is contained in:
parent
4b99f2ccfc
commit
0853030237
5 changed files with 164 additions and 12 deletions
|
@ -11,8 +11,12 @@ class ContactsController extends Controller
|
|||
{
|
||||
public function view(Request $request, Response $response)
|
||||
{
|
||||
$contactModel = new Contact($this->container->get('db'));
|
||||
$contacts = $contactModel->getAllContact();
|
||||
return view($response,'admin/contacts/index.twig', compact('contacts'));
|
||||
return view($response,'admin/contacts/view.twig');
|
||||
}
|
||||
|
||||
public function create(Request $request, Response $response)
|
||||
{
|
||||
return view($response,'admin/contacts/create.twig');
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue