Skip to content

Instantly share code, notes, and snippets.

View svilenkov's full-sized avatar

Igor svilenkov

  • 0XFEEDFACF
  • Serbia
View GitHub Profile
Sublime Text 2 - Default shortcuts cheatsheet (PC keyboard)
-----------------
General
-----------------
* Go to file (CTRL + P)
* Go to project (CTRL + ALT + P)
* Go to methods (CTRL + R)
* Go to line (CTRL + G)
* Toggle side bar (CTRL + KB)
@svilenkov
svilenkov / taggable_or.php
Created October 3, 2012 13:48 — forked from samdark/taggable_or.php
Find by any of tags for taggable Yii extension
/**
* Get criteria to limit query to match any of tags specified
* @access private
* @param array $tags
* @return CDbCriteria
*/
protected function getFindByAnyTagsCriteria($tags) {
$criteria = new CDbCriteria();
$pk = $this->getOwner()->tableSchema->primaryKey;