9
Php

Laravel – Useful RenderSections Method In View

In Laravel PHP MVC Framework, to send content back to the browser one must use a return keyword from a controller with the rendered content, like: return View::make(‘home.index’); This is a very simple example and very common in any Laravel application and any developer knows what is this code for, obviously any developer means a […]

2

Detect Ajax Request-Php And Frameworks

Detecting ajax request in PHP is not a very tough task and there are many ways to detect it using client side code, for example, if you send a flag/sign i.e. http://example.com?isAjax=1 with the request to the server and check it on the server side if( isset( $_GET[‘isAjax’] ) && $_GET[‘isAjax’] ) if that variable […]