Data:,Everyone has talking about data today than years ago, past year (before come large ware house).people they doesn't have about any idea how can use people behaviors in to business decision & How can you make money with it? While the...
this is the way end mail with Email Template Engine .save templates in database and replace some fields and send mail
frist confige your laravel email config file
mail.php
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
'port' =>...
hi guys here is basic AJAX POST on laravel 5 i hope this will help for your advance project
thank you
Route::group(['prefix' => 'ajax'], function() {
Route::get('/ajax', 'AjaxController@ajax');
Route::post('/ajaxpost', 'AjaxController@ajaxpost');
});
<pre class="java"...
function printsmcs()
{
var printsmcs = window.open('','','width=1500,height=1000');
printsmcs.document.open("text/html");
printsmcs.document.write(document.getElementById('printArea').innerHTML);
printsmcs.document.close();
printsmcs.print();
}
text area for prin...
You can use strtotime() to convert two dates to unix time and then calculate the number of seconds between them. From this it's rather easy to calculate different time periods
$date1 = "2015-03-08";
$date2 = date("Y-m-d");
$diff = abs(strtotime($date2) - strtotime($date1));
...
This article will help you to understand the power of jQuery (library of JavaScript functions) with simple
this on view page
Click me
$('#submitform').click(function () {
$.ajax({
url: "baseUrl; ?>/index.php/controllername/ajax",
data: {
data: {"ff":...
I’ve been working on a few scripts that performed some minor data collection using the Facebook Graph API as a data source. Ideally, I wanted this script to be able to run several times a day automatically, however Facebook grants access tokens that expire after 1-2 hours. Since I’m the only one that...
add this in your style .css to change the color of the scrollbars on my pages in Internet Explorer and Firefox
::-webkit-scrollbar {
width: 12px;
height: 4px;
background: rgba(111, 78, 78, 0.35);
}
::-webkit-scrollbar-thumb {
background-color: rgba(145, 36, 66, 0.99);
-webkit-border-radius:...
Here is simple example to how create Ajax link on YII CGridview
array(
'name'='Attribute name',
'header'='Attribute title',
'value'='CHtml::ajaxLink(
"link",
array("url/action"),
array(
"update"="#Ajaxvenu",
...
create .htaccess under www-->yiisitename
add following code on .htaccess
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule...
How do I return the date as pulse & Minus?
add days
$date=date_create(date("Y-m-d"));
date_add($date,date_interval_create_from_date_string("10 days"));
echo date_format($date,"Y-m-d");
Minus days
...
hi guys this is my testing code about yii CSV report i created data table name as deal and i created Deal control & crud
this is my data table
CREATE TABLE IF NOT EXISTS `deals` (
`DealId` int(11) NOT NULL AUTO_INCREMENT,
`DealName` varchar(255) NOT NULL,
`Dealdescription`...
this is represent haw add user access for specific users in to page
i have 2 table
1.user table
2.user level table
user table
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`password` varchar(128) NOT NULL,
`email`...
this for YII USER MODULE
Load and store the user's data every time a page is requested. To do this, modify the Controller class as follows:
i added this on compound controller becouse All controller classes for this application should extend from this base class.
public...
see part-1
i created template folder on view & create file name as user_registation.php
sample email template by channa smcs
add add this site controll In code comment u can get basic undestand about what i did
public function actionEmail()
{
// echo ''.(print_r($_POST,1)).'
';
...
in priviouse blog make send user email & admin email .
in this blog i coding sent email using email template & get email content from data base .
1.create email template table to insert email data
CREATE TABLE IF NOT EXISTS `emailtemplate` (
`id` int(11) unsigned...
In this tutorial, how to send user email & admin email .most developers are doesn't like use extension i think that is good because that extension may be have unnecessary things we need .but extension is very helpful for reduce our...
in this you can call image view on YII grid view
<!--
widget('zii.widgets.grid.CGridView', array(
'id'=>'modelname-grid',
'dataProvider'=>$media->search(),
'filter'=>$media,
'columns'=>array(
// ...
This code shows about how to add a custom button with your own icon for your CGridView of Yii framework.“view”, “update”, “delete” button and it have corresponding actions. We can change it using CButtonColumn properties.
widget('zii.widgets.grid.CGridView', array(
...
Sharp Corporation collaborated with frog's team of designers and technologists to create “Feel UX”, a new Android smartphone experience that is easy to use, highly personalized, and visually stunning.
STUNNING 3D REALISM ON SCREENThe AQUOS Phone's parallax barrier system—which imitates...
I'm trying to put together a PHP script that I can query from any web browser and it returns the Country of the IP address that accessed the PHP script
There are various web APIs that will do this for you. Here's an example using http://ipinfo.io:
$ip = $_SERVER['REMOTE_ADDR'];
$details...
There are times when you would want to display a DIV bar at the top of the page when your scrolls on the page top or down and it should go back to its original position when the user scrolls back up.
jQuery code:
/ executed when the viewr scrolls the page.
$(window).scroll(function(e) {
// Get the position of the location where the scroller starts.
var scroller_anchor = $(".scroller_anchor").offset().top;
...