Skip to content

Instantly share code, notes, and snippets.

View DrMabuse23's full-sized avatar
🏠
Working from home

Pascal Brewing DrMabuse23

🏠
Working from home
View GitHub Profile
//WORKS
$criteria = new CDbCriteria();
$criteria->addBetweenCondition('`create`',$this->getLastWeek(),date('Y-m-d H:i:s'));
//DOESNT WORKS look at create without `
$criteria = new CDbCriteria();
$criteria->addBetweenCondition('create',$this->getLastWeek(),date('Y-m-d H:i:s'));
$form->dropDownList($model, 'selectedfield', CHtml::listData(Field::model()->findAll(), 'id', 'fname'),array('prompt' => '(Select field)'));
$form->dropDownList($model, 'selectedfield', CHtml::listData(Field::model()->findAll(), 'id', 'fname',array('prompt' => '(Select field)')));
public function getProtocol() {
if(Yii::app()->request->isSecureConnection)
return 'https';
return 'http';
}
(function ($) {
"use strict";
var FonicAjaxBox = {
$container:'',
$wrapper:$('<div class="alert-box" style="position: absolute;z-index:30;height: 0;width: 0;"></div>'),
$alertBox:'',
$center_dim:{},
$closeBox:'',
init: function () {
/**
* Updates a particular model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id the ID of the model to be updated
*/
public function actionUpdate($id)
{
$model=$this->loadModel($id);
if ($model->galleryBehavior->getGallery() === null) {
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker',
array(
// you must specify name or model/attribute
'model' => $model,
'attribute' => 'geb_dat',
// 'name'=>'Teilnehmer[birthday]',
// optional: what's the initial value/date?
'value' => '1960-01-01',
(function ($,bespoke,twm) {
"use strict";
var CoverflowDatenblatt = {
$_coverflowHolder:'',
$_coverflows:[],
$_debug: true,
$_theme: 'coverflow',
$_decks:[],
init: function () {
/**
* @static
* @param $n
* @return bool|string
*/
public static function bdnicenumber($n) {
$n = (0+str_replace(",","",$n));
if(!is_numeric($n)) return false;
'mail' => array(
'class' => 'application.extensions.yii-mail.YiiMail',
'transportType'=>'php', /// case sensitive!
'viewPath' => 'application.views.mail',
'logging' => true,
'dryRun' => false
),
<?php
/**
* Created by JetBrains PhpStorm.
* User: brewing
* Date: 13.08.13
* Time: 11:04
* To change this template use File | Settings | File Templates.
*/
namespace Api;
use Guzzle\Http\Client;