This file contains 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 App\Model\Table; | |
use Cake\ORM\Table; | |
use Cake\Validation\Validator; | |
use Cake\Model\Behavior\TreeBehavior; | |
class MembershipClassesTable extends AppTable { | |
public function initialize(array $config){ |
This file contains 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 App\Model\Table; | |
use App\Model\Entity\IdentificationTypesPerson; | |
use Cake\ORM\Query; | |
use Cake\ORM\RulesChecker; | |
use Cake\ORM\Table; | |
use Cake\Validation\Validator; | |
use SoftDelete\Model\Table\SoftDeleteTrait; | |
use Cake\Event\Event; |
This file contains 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
brew rm openssl | |
brew cleanup openssl | |
brew install openssl | |
rvm reinstall ruby | |
gem install compass | |
gem uninstall sass | |
gem install sass |
This file contains 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
.select2-container { | |
display: inline-block; | |
margin: 0; | |
position: relative; | |
vertical-align: middle; | |
.select2-selection--single { | |
cursor: pointer; | |
display: block; | |
height: @input-height-base; |
This file contains 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
$Snapshot = ClassRegistry::init('Snapshot'); | |
$dates = $Snapshot->find | |
( | |
'all', | |
array | |
( | |
'fields' => array | |
( | |
'DISTINCT period_offset', | |
'id', |
This file contains 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 | |
Router::connect('/orange-county-real-estate/search/**', ['controller' => 'properties', 'action'=>'search']); | |
// /orange-county-real-estate/search/orange/1/0 | |
public function search($city = 'orange', $list = 0, $map = 0) { | |
} |
This file contains 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 | |
public function add() { | |
// You don't need to call this, | |
// if you need the Users model you | |
// can use $this->Admins->Users | |
// $this->loadModel('Users'); | |
$admin = $this->Admins->newEntity($this->request->data); | |
// This is not required! |
This file contains 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 Chocolate\View\Helper; | |
use \Cake\View\Helper\FormHelper; | |
use \Cake\View\View; | |
class BootstrapFormHelper extends FormHelper { | |
protected $_defaultConfig = [ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sandbox Template</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css"> | |
This file contains 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
<!DOCTYPE html> | |
<html ng-app="sasApp"> | |
<head> | |
<title>AngularJS Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css"> | |
NewerOlder