tc-php-mvc-core
tc-php-mvc-core copied to clipboard
get query string as an object through Request class
Using $request->getQueryString() method to easily gets a query string as an object. For Example
public function profileByName(Request $request)
{
echo '<pre>';
// http://127.0.0.1:8080/profile/marufsharia?id=123&categoryId=102&type=small
var_dump($request->getQueryString()->catagoryId); // output : 102
echo '</pre>';
}