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
//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')); |
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
$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)'))); |
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
public function getProtocol() { | |
if(Yii::app()->request->isSecureConnection) | |
return 'https'; | |
return 'http'; | |
} |
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
(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 () { |
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
/** | |
* 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) { |
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 | |
$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', |
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
(function ($,bespoke,twm) { | |
"use strict"; | |
var CoverflowDatenblatt = { | |
$_coverflowHolder:'', | |
$_coverflows:[], | |
$_debug: true, | |
$_theme: 'coverflow', | |
$_decks:[], | |
init: function () { |
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
/** | |
* @static | |
* @param $n | |
* @return bool|string | |
*/ | |
public static function bdnicenumber($n) { | |
$n = (0+str_replace(",","",$n)); | |
if(!is_numeric($n)) return false; |
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
'mail' => array( | |
'class' => 'application.extensions.yii-mail.YiiMail', | |
'transportType'=>'php', /// case sensitive! | |
'viewPath' => 'application.views.mail', | |
'logging' => true, | |
'dryRun' => false | |
), |
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 | |
/** | |
* 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; |