Advertisement
Guest User

Untitled

a guest
Apr 6th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * Description of articlePresenter
  5.  *
  6.  * @author Dave
  7.  */
  8. class articlePresenter extends BasePresenter {
  9.  
  10.     /**
  11.      * (non-phpDoc)
  12.      *
  13.      * @see Nette\Application\Presenter#startup()
  14.      */
  15.     protected function startup() {
  16.         parent::startup();
  17.     }
  18.  
  19.     public function actionDefault() {
  20.  
  21.         dump($this->context);
  22.     }
  23.  
  24.     protected function createComponentFbScript() {
  25.         return $this->context->createFbscript();
  26.     }
  27.  
  28.     protected function createComponentLikeButton() {
  29.  
  30.         $fb = $this->context->createLikeButton();
  31.         $fb->setUrl('http://www.google.com');
  32.         return $fb;
  33.     }
  34.  
  35.     public function renderDefault() {
  36.  
  37.  
  38.         $this->template->database = $this->getContext()->database;
  39.     }
  40.  
  41.     public function renderarticleDetail() {
  42.         $this->template->database = $this->getContext()->database;
  43.         $this->template->ArticleName = $this->getParam('ArticleName');
  44.     }
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement