Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Description of articlePresenter
- *
- * @author Dave
- */
- class articlePresenter extends BasePresenter {
- /**
- * (non-phpDoc)
- *
- * @see Nette\Application\Presenter#startup()
- */
- protected function startup() {
- parent::startup();
- }
- public function actionDefault() {
- dump($this->context);
- }
- protected function createComponentFbScript() {
- return $this->context->createFbscript();
- }
- protected function createComponentLikeButton() {
- $fb = $this->context->createLikeButton();
- $fb->setUrl('http://www.google.com');
- return $fb;
- }
- public function renderDefault() {
- $this->template->database = $this->getContext()->database;
- }
- public function renderarticleDetail() {
- $this->template->database = $this->getContext()->database;
- $this->template->ArticleName = $this->getParam('ArticleName');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement