Route::type

Posted on November 25, 2016

Get active route type.

Example usage

// Route: /2016/07/16/hello-world/

var_dump(\MyProject\LolitaFramework\Core\Route::type());

// single
// Route: /wrong_url var_dump(\MyProject\LolitaFramework\Core\Route::type()); // 404

Return Value

string

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *