Browsed by
Tag: mvc

File Upload in Laravel

File Upload in Laravel

file upload in laravel This article is about the file upload in laravel It can be done by using two files one in controller and another in view does the job. First have to create a view file where user can upload files under(resources/views/upload.blade.php)

Create a controller called uploads under app/Http/Controllers/UploadController.php which will validate the file uploaded and process it.

Now finally dont forget to define your routes to make it work.

Make Sure you create a…

Read More Read More

Remove index.php in the url of Yii website

Remove index.php in the url of Yii website

Complete URL management for a Web application involves two aspects: When a user request comes in terms of a URL, the application needs to parse it into understandable parameters. The application needs to provide a way of creating URLs so that the created URLs can be understood by the application. For a Yii application, these are accomplished with the help of CUrlManager. Yii is one of favourite php framework of all time. Here we give another one hidden secret of…

Read More Read More

CSRF protection in codeigniter

CSRF protection in codeigniter

CSRF protection In this article,we will learn how to painlessly protect your CodeIgniter (pre 2.0) application against Cross-Site Request Forgery attacks. CSRF is an inbuilt feature in codeigniter.To enable csrf protection you have to just need to enable it under the config file. Once it has been enabled all the forms will be secured.

Laravel Form for Beginner

Laravel Form for Beginner

Laravel Form For Beginner One of the very basic requirements of all online applications is that the user should be able to enter data. Web forms are the most commonly used methods for entering data into an application and so they are a fundamental thing that you need to get right. Laravel is a framework that aims to make developing and maintaining web applications as easy as possible. One of the ways this is achieved is by having an excellent…

Read More Read More

Redirect to History – Yii

Redirect to History – Yii

Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced as “Yee” and in Chinese it means “simple and evolutionary” Yii is the one of major MVC framework of PHP. We need to redirect the previous / history page for some circumstances in every development. Here we show how to achieve that;

Relationship in Laravel

Relationship in Laravel

Laravel Relationship Laravel is a modern MVC platform that creates our project with all essential modern tools such as Bootstrap, Unit Test, Blade Template Engine, PSR Standards, ORM Queries  and so on. Working with Laravel is always gives me a breezy experience because of its Eloquent ORM. Create and use a Laravel Relationship is an easy task,Whether you are on small todo application or a big scale bank project.