for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* WebHemi.
*
* PHP version 7.1
* @copyright 2012 - 2018 Gixx-web (http://www.gixx-web.com)
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
* @link http://www.gixx-web.com
*/
declare(strict_types = 1);
namespace WebHemi\Middleware\Action\Admin\Applications;
* Class AddAction.
class AddAction extends IndexAction
{
* Gets template map name or template file path.
* @return string
public function getTemplateName() : string
return 'admin-applications-add';
}
* Gets template data.
* @return array
public function getTemplateData() : array
// TODO fix to get it from the request object
$applicationUri = '/';
$this->response = $this->response
->withStatus(302, 'Found')
->withHeader('Location', $applicationUri.'applications');
return [];