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
<ifModule mod_rewrite.c> | |
Options +FollowSymLinks | |
IndexIgnore */* | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.*) index.html | |
</ifModule> |
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
$invoice = R::dispense('invoice'); | |
$invoice->Customer = 'Greg'; | |
$lineItems = R::dispense('lineitem', 2); | |
$lineItems[0]->LineNumber = 1; | |
$lineItems[0]->Amount = 2.50; | |
$lineItems[1]->LineNumber = 2; | |
$lineItems[1]->Amount = 10.00; | |
$invoice->ownLineItem = $lineItems; |
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
array( // display 'status.Name' using an expression | |
'name'=>'accessLevelID', | |
'value'=>'$data->level->Name', | |
), |
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
$criteria = new CDbCriteria; | |
//Select tip filterin by ID and TipcategoryID | |
$criteria->condition='ID=:ID AND TipcategoryID=:TipcategoryID'; | |
$criteria->params=array('ID'=>$NextTip,':TipcategoryID'=>$Tip_Alert->TipcategoryID); |
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
<div class="row"> | |
<?php echo $form->labelEx($model,'Send_Time'); ?> | |
<?php $form->widget( 'ext.EJuiTimePicker.EJuiTimePicker', array( | |
'model' => $model, | |
'attribute' => 'Send_Time', | |
)); ?> |
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
<div class="row"> | |
<?php echo $form->labelEx($model,'CountryID'); ?> | |
<?php | |
echo $form->dropDownList($model,'CountryID', | |
CHtml::listData(Country::model()->findAll(), 'ID', 'Name')); | |
?> | |
<?php echo $form->error($model,'CountryID'); ?> | |
</div> |
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
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: ubeergeek | |
* Date: 9/12/12 | |
* Time: 12:34 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class WebUser extends CWebUser{ | |
private $_user; |
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
<div class="row"> | |
<?php echo $form->labelEx($model,'End_date'); ?> | |
<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( | |
'model'=>$model, 'attribute'=>'End_date', | |
'options'=>array( | |
'dateFormat'=>'yy-mm-dd', | |
'yearRange'=>'-70:+0', | |
'changeYear'=>'true', | |
'changeMonth'=>'true', | |
), |
NewerOlder