jasteele123

concrete5 BlockView render error

May 27th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. $a = new Area('News Gallery');
  2. $b = Block::getByName('Smugmug Slideshow');
  3. if(is_object($b)) {
  4.   $b->setBlockAreaObject($a);
  5.   $bv = new BlockView();
  6. /*  // this shows the BlockView methods, so it's ok so far...
  7.   $reflect = new ReflectionClass($bv);
  8.   $meths = $reflect->getMethods();
  9.   dump($meths, 'BlockView $bv');
  10. */
  11.   $bv->render($b);
  12. // Fatal error: Call to a member function cacheBlockRecord() on a non-object in /blah/concrete/models/block.php on line 329
  13. }
Advertisement
Add Comment
Please, Sign In to add comment