Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
 


Loading
 


Framework PHP

Framework PHP


Accueil Accueil


Documentation Documentation

Télécharger Télécharger


Contact Contact


 
AideAide

Quick start Quick start


Vidéos d'aide Vidéos d'aide


Tutoriels Tutoriels


Wiki Wiki
Issue Tracker Issue Tracker
Eclipse PHP Eclipse PHP


 
LanguesLangues




 
SoutenirSoutenir

 
CompatibilitésCompatibilités




 
ComposantsComposants

jQuery
CkEditor

 
Quick start

Quick start WebSite-PHP Framework PHP


1 - Téléchargez le Framework PHP WebSite-PHP
2 - Installez un serveur web PHP (PHP 5.2 min. requis)
3 - Décompressez le fichier téléchargez dans le dossier root de votre serveur web

Voici les dossiers/fichiers du zip.
Passez la souris sur les dossiers/fichiers pour plus d'informations.
  •  img
  •  lang
    •  en
      •  all.inc.php
      •  default.inc.php
      •  home.inc.php
    •  fr
  •  pages
    •  defined_zone
    •  error
    •  wsp-admin
    •  home.php
  •  wsp
    •  cache
    •  class
    •  config
    •  css
    •  flash
    •  img
    •  includes
    •  js

4 - Configurez votre serveur
5 - Lancez vos serveurs (Apache et MySQL)

6 - Connectez vous la page d'accueil (http://localhost/votre_site_web)

7 - Connectez vous au panneau d'administration
(http://localhost/votre_site_web/fr/wsp-admin/connect.html)
Connexion au panneau d'administration
(login par défaut:admin, mot de passe: admin)

8 - Configurez votre futur site web

Consulter issue tracker pour trouver de l'aide ou poser vos question à la team WSP.


Première pagePremière page

<?php
/**
 * PHP file pages\my-page.php
 */
/**
 * Page my-page
 * URL: http://127.0.0.1/website-php/my-page.html
 *
 * WebSite-PHP : PHP Framework 100% object (http://www.website-php.com)
 * Copyright (c) 2009-2011 WebSite-PHP.com
 * PHP versions >= 5.2
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 * 
 * @author      Emilien MOREL <admin@website-php.com>
 * @link        http://www.website-php.com
 * @copyright   WebSite-PHP.com 26/05/2011
 * @version     1.0.100
 * @access      public
 * @since       1.0.18
 */

// MyPage is a class which extends Page Object
class MyPage extends Page {
    
    
// First called method to instanciate page object
    
public function InitializeComponent() {
        
// create a new object Box
        
$my_box = new Box(__(MY_BOX), true);
        
$my_box->setWidth(300); // set the with size of the box
        
        // create a new object Label (text)
        // __(): call the translation of HELLOWORLD
        
$my_label = new Label(__(HELLOWORLD));
        
        
// set label to the content of the box 
        
$my_box->setContent($my_label);
        
        
// associate my main object (my_box) to the render of the page
        
$this->render $my_box;
    }
    
    
// Load method
    
public function Load() {
        
// Page title 
        // __(): call the translation of MY_PAGE_TITLE
        
parent::$PAGE_TITLE __(MY_PAGE_TITLE);
        
        
// Page description
        // __(): call the translation of MY_PAGE_DESCRIPTION
        
parent::$PAGE_DESCRIPTION __(MY_PAGE_DESCRIPTION);
        
        
// Page meta tag keywords
        // __(): call the translation of MY_PAGE_KEYWORDS
        
parent::$PAGE_KEYWORDS __(MY_PAGE_KEYWORDS);
    }
}
?>


<?php
// File : lang/fr/my-page.inc.php

    
define("MY_PAGE_TITLE""Titre de ma page");
    
define("MY_PAGE_DESCRIPTION""Description de ma page");
    
define("MY_PAGE_KEYWORDS""keyword 1,keyword 2,keyword 3,keyword 4");
    
    
define("MY_BOX""Ma boite");
    
define("HELLOWORLD""HelloWorld");
?>


Télécharger l'exemple
URL pour tester l'exemple: http://localhost/votre_site_web/my-page.html

Voir le rendu de cet exemple (DialogBox)
Voir le rendu de cet exemple (Nouvelle page)


Plus d'informationsPlus d'informations

Plus d'informations disponible sur la page des tutoriels
ou vous pouvez consultez nos vidéos d'aide.


Share




Copyright © 2009-2012 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker
Site created with framework WebSite-PHP