/** * Does the actual rendering. * * @return void */ protected function renderContent() { $urlHelper = new UrlHelper(); //-------------------- HTML ------------------ ?> <h1>Vend Tools login</h1> <?php if (!empty($this->errors)) { ?> <div class="error"> <?php echo implode('<br />', $this->errors); ?> </div> <?php } ?> <form method="post" action="<?php $urlHelper->getRouteTarget('Index', 'Login'); ?> "> <label for="input_username">Username</label> <input type="text" id="input_username" name="username" /><br /> <label for="input_password">Password</label> <input type="password" id="input_password" name="password" /><br /> <input type="submit" value="Log in" name="submit" /> </form> <?php // ----------------------- /HTML -------------------------- }
/** * Does the actual rendering. * * @return void */ protected function renderContent() { $urlHelper = new UrlHelper(); //-------------------- HTML ------------------ ?> <h1>Welcome to Vend Tools</h1> <p>Please <a href="<?php echo $urlHelper->getRouteTarget('Index', 'Login'); ?> ">log in</a> or <a href="<?php echo $urlHelper->getRouteTarget('Index', 'SignUp'); ?> ">sign up</a></p> <?php // ----------------------- /HTML -------------------------- }