Monday, December 16, 2013

Check whether a view is empty or not

$view = views_get_view('today_deal_cupon2');
$view->set_arguments(array($bid));
$view->execute();
$view->render();
$view->set_display('default');
$output = $view->preview();

No comments:

Post a Comment