
Search In
In Laravel, many times we may need to create a link to download sample CSV file. So that user can download sample CSV file from our website and upload correct formatted file.
It's a very simple task and to accomplish that we need to follow followin
The main use of a pie chart is to show comparison. When items are presented on a pie chart, you can easily see which item is the most popular and which is the least popular.
you can create the pie chart in iOS by using the following methods.
Her
You can also get the data i.e title, description, thumbnail_url, etc from the Youtube video url by using following script. Remember you need to put the YOUR_GOOGLE_DEVELOPMENT_KEY which you can generate by creating account in Google Developer Console
In laravel we can create relation between the tables and can use them where ever we need it we need not to create custom queries or use query builder to retrieve data. I have written one of example of my worked project.
//hasOne relationship model
When a user requests a page or a resource then the CAKEPHP request cycle starts. It can be explained with the below diagram:
Let's now discuss the request cycle diagram with steps:
1.The request is redirected to webroot/index.php based on the w
AJAX request runs a RAW parameterized Postgres SQL Query after receiving request
Suppose we have a situation like that
Here's my situation
in my php view file, I make AJAX request to the server
The AJAX request is received and runs a RAW paramet
Odoo provides two inheritance mechanisms to extend an existing model in a modular way.
The first inheritance mechanism allows a module to modify the behavior of a model defined in another module:
1. add fields to a model,
2. override the de
Namespaces plays an important feature of php. Namespaces are used to solve 2 major issues.
1) Authors of libraries
2) Applications encounter
Laravel 4.x also provide namespace to solve those issues.
The files are app/controllers/FilesControlle
This post demonstrates how to display an image prior to uploading it on server.
This demo uses the JavaScript's readAsDataURL method of reader API which will read image as url.
<html>
<head>
<script src="https://ajax.googl
|
---------->
HTTP request
|
+--------------+ | +--------------+
| | | | |
| browser | | | web server |
| (JavaScript) | | |
