Let's review the work we need to do at the client side of the app. We need to create a new layout in order to remove the header menu. After that, we have to create the signup form and its view. Then, we should modify the controller to use the new layout and process the signup form. We also need to modify the controller view to show the signup form and finally adapt ApiClient
to be able to send the data to the API.
The following screenshot shows the structure of the module:
Let's start with the layout. The file is not shown in the screenshot, but it should be placed in the Common
module next to the layout.phtml
file. The contents of the file are the same as that of the layout.phtml
file. The only difference is that we removed the following lines of code:
<?php $this->navigation('navigation')->findBy('route', 'wall') ->setParams(array('username' => $this->username)); ?> <?php $this->navigation('navigation')->findBy('route', 'feeds...