Skip to content

Instantly share code, notes, and snippets.

@ergoz
Created June 2, 2014 07:56
Show Gist options
  • Save ergoz/8c965080dddd3188ca2d to your computer and use it in GitHub Desktop.
Save ergoz/8c965080dddd3188ca2d to your computer and use it in GitHub Desktop.
Запуск stored procedure из mysql в YII Framework
<?php
function getAPI_Function_Stats($param_one, $param_two){
return Yii::app()->db->createCommand("CALL your_stored_procedure(:page, :section)")->queryAll(array(':page' => $param_one, ':section' => $param_two));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment