Posted By

dosde on 03/05/13


block concrete5

Versions (?)

Insert Block with options hardcoded into page

 / Published in: PHP

The bID will be NULL, since there wont be any Database entry created

  1. $sp = BlockType::getByHandle('BLOCKHANDLE');
  2. $sp->controller->variablename = '15'; //set variables from database, or create own ones that are normally not set, to check that this block was called programmatically
  3. $sp->render('view'); // templates/... (to use templates)

Report this snippet  

You need to login to post a comment.