Tran.. thanks
i did it another way. Created method in Model and called the same from controller
Model:
public static function callMyPro($params)
{
// A raw SQL statement
$sql = "CALL my_procedure($params);";
// Base model
$robot = new MyModel();
// Execute the query
return new Resultset(null, $robot, $robot->getReadConnection()->query($sql));
}
Controller:
$myModel = new MYModel();
$results = $myModel->callMyPro($params)->toArray();
And it works for me.
Thanks