Sunday, May 13, 2012

Cloud in reality

Let’s decide what real fact consist Cloud of:
 
  • Application need to run across machine(s) in a distributed fashion
  • The machines are cheap and mere a desktop class
  • Network connectivity among those machines are not good
What are the Goals we will look for [ Basic Principles ]:
 
  • Horizontal scaling
  • Quick recovery on failover
  • Seamless Software Updates
  • Portable across Cloud offerings
  • Maintain Security SLA intact

Thursday, February 2, 2012

How to display View (Block types)

//load the view by name
$viewName = views_get_view('promo_blocks_homepage');
//output the view
$output = $viewName->execute_display('block_1');
print $output['content'];

whereas View (Page types) renders as :

//load the view by name
$viewName = views_get_view('promo_blocks_homepage');
//output the view
echo $viewName->execute_display('page_1');