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
/** | |
* jQuery Yii GridView plugin file. | |
* | |
* @author Qiang Xue <qiang.xue@gmail.com> | |
* @link http://www.yiiframework.com/ | |
* @copyright Copyright © 2008-2010 Yii Software LLC | |
* @license http://www.yiiframework.com/license/ | |
* @version $Id: jquery.yiigridview.js 3286 2011-06-16 17:34:34Z qiang.xue $ | |
*/ |
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
$critiria = new CDbCriteria; | |
$critiria->order = 'id ASC'; | |
$critiria->limit = '1'; | |
$critiria->condition = 'type=:type'; | |
$critiria->params = array( | |
':type'=> 3 | |
); | |
CVarDumper::dump(OneXN::model()->findAll($critiria),10,true); | |
//not works -> | |
CVarDumper::dump(OneXN::model()->deleteAll($critiria),10,true); |
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>google</title> | |
<base href="http://1xnn.ru/"> | |
<head> | |
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0"> | |
<iframe name="sframe" id="sframe" src="http://google.com" frameborder="0" scrolling="auto" width="100%" height="90%"></iframe> | |
<div style="background-color:blue;height:10%;text-align:center;" > | |
информация |
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
<div id="zend">some div</div> | |
<script> | |
jQuery(function(){ | |
$("#zend").data('test', 123); | |
alert($("#zend").data('test')); | |
}); | |
</script> |
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 init(){ | |
parent::init(); | |
if(Yii::app()->request->requestUri === '/index.php') | |
Yii::app()->request->redirect('site/login'); | |
} |
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 | |
/** | |
* Net_URL2, a class representing a URL as per RFC 3986. | |
* | |
* PHP version 5 | |
* | |
* LICENSE: | |
* | |
* Copyright (c) 2007-2009, Peytz & Co. A/S | |
* All rights reserved. |
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
$connection->createCommand() | |
->update('{{apiKeys}}', array( | |
'balance'=>'balance - 1', | |
), 'key=:key', array(':key'=> md5($postedKey))); |
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
if($this->beginCache('application.components.widgets.TopWebsitesBlock2', array('duration'=>3600))) { | |
$this->widget('application.components.widgets.TopWebsitesBlock', array( | |
'websitesToShow' => 5, | |
)); | |
$this->endCache(); | |
} |
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
/** | |
* this is to fix the 2038 year problem | |
* @see http://www.php.net/manual/en/class.datetime.php | |
* @example time2(); | |
* @example time2('@946684800'); | |
* @param string $date the current date | |
* @return bigint current timestamp with 2038 fix | |
* @author David Kurushin | |
*/ | |
function time2($date = ''){ |
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
array | |
( | |
'0' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\index.php' | |
'1' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\yii.php' | |
'2' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\YiiBase.php' | |
'3' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\base\\interfaces.php' | |
'4' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\web\\CWebApplication.php' | |
'5' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\base\\CApplication.php' | |
'6' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\base\\CModule.php' | |
'7' => 'C:\\Program Files\\Zend\\vhosts\\1xnn3\\private\\library\\yii\\base\\CComponent.php' |
NewerOlder