'><?php echo Hispanic\Route::url("home/dashboard"); ?> - :) yes, if you are logged or then error 404 (middelware is present)</a></li> <li><a href='<?php echo Hispanic\Route::url("home/arguments/1/hello+world"); ?> '><?php echo Hispanic\Route::url("home/arguments/1/hello+world"); ?> - pass arguments and validate with regular expressions</a></li> <li><a href='<?php echo Hispanic\Route::url("home/optional_argument"); ?> '><?php echo Hispanic\Route::url("home/optional_argument"); ?> - pass optional argument</a></li> </ul> <h2>public static methods</h2> <h4>get($route, $ControllerAction, $regex = array())</h4> <h4>post($route, $ControllerAction, $regex = array())</h4> <h4>put($route, $ControllerAction, $regex = array())</h4> <h4>delete($route, $ControllerAction, $regex = array())</h4> <h4>verb($verb = array(), $route, $ControllerAction, $regex = array())</h4> <h4>group(array $middleware, $group)</h4> <h4>get_collection()</h4> <h4>get_controller()</h4> <h4>base_url()</h4> <h4>request_uri()</h4>
<h3>Login</h3> <form method="post" action="<?php echo Hispanic\Route::url("home/check_login"); ?> "> <div> <label for="name">Name: demo</label> <input type="text" name="name" /> </div> <div> <label for="name">Password: demo</label> <input type="password" name="password" /> </div> <input type="hidden" name="csrf_token" value="<?php echo Hispanic\Route::get_csrf_token(); ?> " /> <div> <button>Start</button> </div> </form>