WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Simple Picture with Link

Tutorials

>

Tutorial Picture

>

Simple Picture with Link


Picture-02: Tutorial of the composant Picture of the PHP FrameWork WebSite-PHP.

Simple Picture with Link:

The Sacred Dog by cuellar


Go back to tutorial of the componant Picture



Source code

Source code


File: /pages/tutorials/picture/picture-02.php

<?php
class Picture02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Simple Picture with Link";
        
        
$pic = new Picture("img/slider/1-small.jpg");
        
$pic->setTitle("The Sacred Dog by cuellar");
        
        
$link_pic = new Link("http://www.flickr.com/
                photos/cuellar/2961728459/in/
                pool-creative_commons-_free_pictures"

                    
Link::TARGET_BLANK$pic);
        
        
$this->render $link_pic;
    }
}
?>


Go back to tutorial of the componant Picture


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker