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
 


Tutorial : Google Adsense

Tutorials

>

Tutorial Ads

>

Tutorial : Google Adsense


Ads-01: Tutorial of the composant Ads of the PHP FrameWork WebSite-PHP.

Tutorial : Google Adsense:



Go back to tutorial of the componant Ads



Source code

Source code



To use Ads, you need to connect to the admin interface of the framework WebSite-PHP.

Once connected you will go to the menu Configuration -> Configure modules and enable the module Ads.



File: /pages/tutorials/ads/ads-01.php

<?php
class Ads01 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Google Adsense";
        
        
$this->render = new Adsense("ca-pub-5482260287865035""5748217309"300250);

        
// Enable third party cookies filter
        
$this->enableThirdPartyCookiesFilter();
    }
}
?>


Go back to tutorial of the componant Ads


Share

 


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