1. Echoing Query String.
/** If $collection is your collection**/ $collection->printlogquery(true); /** Don't forget to write true in param**/But by this method you cannot assign the query you get echoed to some variable.
2. Getting the query String
$query=$collection->getSelectSql(true); echo $query;
No comments:
Post a Comment