How to limit the number of BLOC added in a area ?

Permalink
I remember seeing a code somewhere in the forum but cant find it.

<?php
$as = new Area('Title');
$as->display($c);
?>
What I need to change to give a maximum of bloc per area ?

olacom
 
olacom replied on at Permalink Reply
olacom
Nevermind I found it.
<?php
$as = new Area('Title');
$as->setBlockLimit(2); 
$as->display($c);
?>