This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
require_once('../php-activerecord/ActiveRecord.php'); | |
// require_once '../vendor/autoload.php'; | |
define('BASEDIR', dirname(__file__)); | |
//define('BASEURL', str_replace('m.', 'www.', $_SERVER['SERVER_NAME'])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
include 'Mobile_Detect.php'; | |
$detect = new Mobile_Detect(); | |
require_once('php-activerecord/ActiveRecord.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO `pages` (`id`, `domain_id`, `innav`, `anchor`, `permalink`, `title`, `keywords`, `description`, `layout_id`, `created_at`, `updated_at`, `page_content`) | |
VALUES | |
(14, 1, 1, 'Home', '/', 'windermere B And B', 'windermere, b and b', 'widermere b and b etc ...', 2, '2013-06-28 13:25:40', '2013-06-28 13:25:40', '<div class=\"row-fluid\">\r\n<div class=\"span6\">\r\n<p>windermere home page</p>\r\n</div>\r\n\r\n<div class=\"span6\"><img src=\"/assets/img/templates/placeholder.jpg\" /></div>\r\n</div>\r\n\r\n<div class=\"row-fluid\">\r\n<div class=\"span6\">\r\n<p>more content</p>\r\n</div>\r\n\r\n<div class=\"span6\"><img src=\"/assets/img/templates/placeholder.jpg\" /></div>\r\n</div>\r\n\r\n<div class=\"row-fluid\">\r\n<div class=\"span6\">\r\n<p>more content</p>\r\n</div>\r\n\r\n<div class=\"span6\"><img src=\"/assets/img/templates/placeholder.jpg\" /></div>\r\n</div>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Bllim\Datatables; | |
/** | |
* Laravel Datatable Bundle | |
* | |
* This bundle is created to handle server-side works of DataTables Jquery Plugin (http://datatables.net) | |
* | |
* @package Laravel | |
* @category Bundle | |
* @version 1.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# laravel new-app | |
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git" | |
alias artisan="php artisan" | |
alias migrate="php artisan migrate" | |
alias serve="php artisan serve" | |
alias dump="php artisan dump" | |
alias t="phpunit" | |
# Generators Package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias art='php artisan' | |
alias g:c='art generate:controller' | |
alias g:f='art generate:form' | |
alias g:mig='art generate:migration' | |
alias g:mod='art generate:model' | |
alias g:r='art generate:resource' | |
alias g:sca='art generate:scaffold' | |
alias g:seed='art generate:seed' | |
alias g:v='art generate:view' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ini_set('auto_detect_line_endings', true); | |
$csvFile = Input::file('csvfile'); | |
$uploadDir = path('public').'/uploads/data/prospects'; | |
$filename = $csvFile['name']; | |
Input::upload('csvfile', $uploadDir, $filename); | |
$handle = fopen($uploadDir.'/'.$filename, "r"); |
NewerOlder