Often we may need to pass variables from server side to client for using it in a JavaScript file or in a global script. It’s possible to write JavaScript code from server side script, for example, we may use something like this: echo ""; This will generate something like this:...
→ Read MoreLaravel is one of the most popular PHP MVC frameworks and taking the Php community rapidly than any other frameworks probably couldn’t do and it’s because of a great combination of power, extensibility and easiness. The framework provides so many ways to a developer to develop an application using one...
→ Read MoreIn 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,...
→ Read MoreIn Laravel there is a nice way to listen for many events, built-in and custom events, simply using code like this: Event::listen('event_name', function($object) { }); We can register event listeners. In Laravel documentation on their website, mentioned about Application Events and also about Custom Events (defined by user). There are...
→ Read MoreThere is no need for a brief about twitter bootstrap, we all (web developers) know what is it and we also know the benefits for using the twitter bootstrap in any project. Recently version - 3 of twitter bootstrap has been released and there are some changes has been made...
→ Read More