Advertisement
Guest User

Untitled

a guest
Aug 30th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. defined('C5_EXECUTE') or die("Access Denied.");
  3.  
  4. class ContentOfferteBlockController extends BlockController {
  5. ...
  6.  
  7. public function view(){
  8. //rendering stuff
  9. }
  10.  
  11. public function action_add_to_favourites (){
  12. $bt = BlockType::getByHandle('content_offerte');
  13. $bt->render('view');
  14.  
  15. exit;
  16. }
  17. }
  18.  
  19. //generates this error:
  20. Fatal error: Call to a member function getProxyBlock() on a non-object in /core/libraries/block_view.php on line 39
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement