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
npm install -g grunt-cli | |
npm http GET https://registry.npmjs.org/grunt-cli | |
npm http 304 https://registry.npmjs.org/grunt-cli | |
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore' | |
npm ERR! error rolling back [email protected] { [Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore'] | |
npm ERR! error rolling back errno: 3, | |
npm ERR! error rolling back code: 'EACCES', | |
npm ERR! error rolling back path: '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore' } | |
npm ERR! Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore' | |
npm ERR! { [Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore'] |
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('imagefile', 'file', 'types'=>'jpg, gif, png','allowEmpty' => false,'on' => 'create'), | |
array('imagefile','file','types'=>'jpg, gif, png','allowEmpty' => true,'on' => 'update'), |
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 | |
/** | |
* Twig view renderer class file. | |
* | |
* @link http://www.yiiframework.com/ | |
* @copyright Copyright © 2008 Yii Software LLC | |
* @license http://www.yiiframework.com/license/ | |
*/ | |
namespace app\helpers; |
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\helpers; | |
use yii\helpers\ArrayHelper; | |
use yii\helpers\Html; | |
use yii\helpers\VarDumper; | |
/** | |
* Class Typo | |
* @author: Pascal Brewing < [email protected] > |
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 | |
/** | |
* Twig view renderer class file. | |
* | |
* @link http://www.yiiframework.com/ | |
* @copyright Copyright © 2008 Yii Software LLC | |
* @license http://www.yiiframework.com/license/ | |
*/ | |
namespace yii\twig; |
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
{{ typo.pageHeaderTwig('test','test') }} |
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\helpers; | |
use app\helpers\Typo; | |
/** | |
* | |
*/ | |
class TwigExtensions extends \Twig_Extension |
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 PhpStorm. | |
* User: brewing | |
* Date: 21.11.13 | |
* Time: 11:40 | |
*/ | |
namespace frontend\components; |
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\helpers; | |
/** | |
* Date: 20.11.13 | |
* Time: 23:00 | |
* Class Glyph | |
* Create a Glyphicon | |
* |
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 class="tweet"> | |
<script type="text/javascript"> | |
tweetmeme_url = '<?php the_permalink() ?>'; | |
tweetmeme_source = '<?php bloginfo('url') ?>/author/<?php the_author_link() ?>'; | |
</script> | |
<!--[if IE]> | |
<script type="text/javascript"> | |
onload = function() | |
{ | |
var theframes = document.getElementsByTagName('iframe'); |