Skip to content

Instantly share code, notes, and snippets.

@nshontz
nshontz / Controller
Created July 12, 2012 17:18
CI Mongo
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->library(array('parser'));
$this->load->spark('cimongo/1.3.0');
}
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
require(["jquery"],function(jQuery){
jQuery(document).ready(function($){
$('#lastName').focus();
$('.form_datetime').datepicker({
autoclose: true,
startView:2,
format:'mm/dd/yyyy'
});
});
});
php artisan down
git status
git checkout master
git pull origin master
composer update
php artisan migrate
php artisan cache:clear
php artisan route:clear
composer dump-autoload -o
php artisan clear-compiled
<script id="tmpl-nf-form-layout" type="text/template">
<div>
<div class="nf-before-form-content"></div>
<fieldset>
<legend class="sr-only">{{ data.title }}</legend>
<div class="nf-form-content {{{ data.element_class }}}"></div>
</fieldset>
<div class="nf-after-form-content"></div>
</div>
</script>
<script id="tmpl-nf-field-label" type="text/template">
<# if ( data.type == 'listcheckbox' ) { #>
<div class="nf-field-label"><span class="{{{ data.renderLabelClasses() }}}"><strong style="font-weight: 700; color: #646464">{{{ data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}} {{{ data.maybeRenderHelp() }}}</strong></span></div>
<# } else { #>
<div class="nf-field-label"><label for="nf-field-{{{ data.id }}}" class="{{{ data.renderLabelClasses() }}}">{{{ data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}} {{{ data.maybeRenderHelp() }}}</label></div>
<# } #>
</script>