WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial Link

Tutorials

>

Tutorial Link



Tutorial 1 : Simple Link
Datei: /pages/tutorials/link/link-01.php

<?php
class Link01 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Simple Link";
        
        
$this->render = new Link($this->getBaseLanguageURL(),
                            
Link::TARGET_BLANK__(HOME_LINK));
    }
}
?>


Tutorial 2 : Link with JavaScript event
Datei: /pages/tutorials/link/link-02.php

<?php
class Link02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Link with JavaScript event";
        
        
$link = new Link($this->getBaseLanguageURL(),
                            
Link::TARGET_BLANK__(HOME_LINK));
        
$link->onClickJs(new JavaScript("alert('click link');"));            
        
$this->render $link;
    }
}
?>


Tutorial 3 : Link with Analytics tracking
Datei: /pages/tutorials/link/link-03.php

<?php
class Link03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Link with Analytics tracking";
        
        
$link = new Link($this->getBaseLanguageURL(),
                            
Link::TARGET_BLANK__(HOME_LINK));
        
$link->setTrackEvent("Tutorial""Click""Link03");        
        
$this->render $link;
    }
}
?>



Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker