Skip to content

Commit 807903a

Browse files
committed
Update BaseController.php
1 parent c2d522e commit 807903a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/BaseController.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,22 @@
1515

1616
namespace FloatPHP\Kernel;
1717

18-
use FloatPHP\Classes\{
19-
Http\Response
20-
};
18+
use FloatPHP\Classes\Http\Response;
2119
use FloatPHP\Helpers\Connection\Transient;
2220

2321
class BaseController extends View
2422
{
23+
/**
24+
* redirectIndex : [GET] /index.php
25+
*
26+
* @access public
27+
* @return void
28+
*/
29+
public function redirectIndex()
30+
{
31+
$this->redirect();
32+
}
33+
2534
/**
2635
* Check whether user has access.
2736
*

0 commit comments

Comments
 (0)