Skip to content

Tormix Blog – Web development

Tips and tutorials

  • PHP Tips
  • Yii (Yii 2)
  • Joomla
  • JavaScript
    • jQuery
    • NodeJS
    • Angular
  • Site map

Tags

.htaccess Apache api commands composer configuration css database editor email error errors example extension firefox fix get hosts HTML install installation JavaScript Joomla js json linux MySQL nginx open PHP query RAND selectlist server set and get show errors sql ubuntu unix utf-8 version yii yii2 zend_extension zip

Categories

  • Browsers (1)
    • Fix (1)
  • Css (2)
  • Development (49)
    • .htaccess (2)
    • Data for testing (3)
    • Install (5)
    • Install environment (4)
    • SMS (1)
    • Sorting (2)
    • Test data (1)
    • XAMPP (1)
    • yii (15)
  • Git (1)
  • JavaScript (5)
    • jQuery (1)
    • Regular expressions (1)
  • Joomla (12)
    • Fixes (1)
    • Translate (1)
  • Laravel (1)
  • Linux / Unix (4)
  • PHP Tips (19)
  • Python (1)
  • SQL (6)
    • MariaDB (1)
    • MySQL (6)
    • Percona (1)
  • Yii2 (15)
  • Без рубрики (3)

Calendar

April 2018
M T W T F S S
« Sep    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Recent Posts

  • Yii2 join condition when you use viaTable
  • How to get current commit name in Git?
  • Relation “migration” already exists error while executing yii migrate
  • Work with ZIP-archives in PHP 5.2+
  • What difference between extension, zend_extension, zend_extension_ts in PHP.ini (extension VS zend_extension)?

Tag: yii 2

Yii 2 query debug in one SQL line

Yii 2 query debug in one SQL line

If you need show $query in Yii 2 like one line SQL string for debug then you can write this:

var_dump($query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql);
Format AsidePosted on 2015-08-122016-02-11Categories Development, yii, Yii2Tags degug, one SQL line, query, sql, yii, yii 2
Proudly powered by WordPress