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
| /*! | |
| * jquery.ajaxSubmit.js - v 0.9.3 (2011-11-29) | |
| * Copyright (C) 2011 by Adam Ydenius (mollwe@gmail.com) | http://mollwe.se | |
| * Dual licensed under MIT and GPL. | |
| *//* | |
| * Gets all input (with name attribute) values within form and submits form with ajax. | |
| * First argument, options, is object with: | |
| * Properties: | |
| * - url: override form action. | |
| * - method: override form method. |
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
| /** | |
| * | |
| * @param unknown_type $form | |
| * @param unknown_type $form_state | |
| * @return multitype:string NULL | |
| */ | |
| function multifiles_example_form($form, &$form_state) { | |
| $form['#tree'] = TRUE; |
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
| /** | |
| * | |
| * @param unknown_type $form | |
| * @param unknown_type $form_state | |
| * @return multitype:string NULL | |
| */ | |
| function multifiles_example_form($form, &$form_state) { | |
| $form['#tree'] = TRUE; |
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
| jQuery.ajaxSetup({ | |
| 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} | |
| }) | |
| //Send data via get if JS enabled | |
| jQuery.fn.getWithAjax = function() { | |
| this.click(function() { | |
| $.get($(this).attr("href"), $(this).serialize(), null, "script"); | |
| return false; |
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
| /** | |
| * | |
| * @param unknown_type $form | |
| * @param unknown_type $form_state | |
| * @return multitype:string NULL | |
| */ | |
| function multifiles_example_form($form, &$form_state) { | |
| $form['#tree'] = TRUE; |
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
| #!/bin/bash | |
| function install_laravel() { | |
| echo "Installing Laravel into '$project_name'..." | |
| wget https://github.com/laravel/laravel/archive/master.zip ./ | |
| unzip ./master.zip |
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
| {{link_to_route('routeName', 'Visible_Text_of_the_Laravel_Link');}} |
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
| curl -sS getcomposer.org/installer | php -d detect_unicode=Off | |
| composer create-project laravel/laravel THE_PROJ_DIRECOTRY_NAME_YOU_WANT --prefer-dist | |
| or using the new phar, copy it into usr/local/bin | |
| run : | |
| $ chmod +x /usr/local/bin/laravel |
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
| { | |
| "name": "laravel/laravel", | |
| "description": "The Laravel Framework.", | |
| "keywords": ["framework", "laravel"], | |
| "license": "MIT", | |
| "require": { | |
| "laravel/framework": "4.1.*", | |
| "components/bootstrap": "3.0.2" | |
| }, | |
| "require-dev": { |
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
| // DB Dumpers | |
| DB::listen(function($sql) | |
| { | |
| var_dump($sql); | |
| }); | |
| Event::listen('laravel.query', function($sql) | |
| { | |
| var_dump($sql); |