PHP POST Method tutorial for Programmers

PHP POST is the superglobal variable which is used to retrieve the form-data. There is another method for that which is PHP GET. But PHP POST is more preferred than PHP GET when it is about the security because the form-data is not shown in the URL when you submit the form with PHP POST method. Most commonly PHP POST method is used for registration and login forms.

Continue reading

How to Pass variables to the layout in Yii Framework

If you are new to Yii Framework then one of the top questions you will have in mind is ” How to pass variables to the layout of Yii Framework “. Because you cannot pass variables by using the render method which is used to call the view file and pass variables to it. But if you want to pass variables to the layout then it’s not a tough task at all. All you need is just a small trick and thats it.

Continue reading

How to remove index.php from Yii Framework URL pattern

When you start using a Yii Framework you face several problems related to it configuration. One of the common problems you will face in the startup of Yii Framework is inclusion of index.php in the URL by default. It will make your URL complicated. And it will also reveal the technology ( PHP ) of your Web application to the outside users, which some of the programmers don’t want to reveal. And sometime if you want to share a URL then this index.php will become the ugly part in your URL, besides including index.php in every URL doesn’t bring any significance for your application. So maybe already your trying to find a way to remove index.php from Yii application’s URL.

Continue reading

Analysis of a Play application: Play Framework Tutorial

Play Application Framework is really very powerful because of its rich features. Play Application is RESTful by default. And it has a broad support for NoSQL & Big Data. Play Application comes with asset Compiler for CoffeeScript, LESS etc.

In this lesson we will learn about the Structure of a Play Application. We will have a look at which directory is used for what in a typical Play Application. So lets get started.

Continue reading