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
 


Quick start

Quick start WebSite-PHP Framework PHP


1 - Download WebSite-PHP Framework
2 - Install a PHP web server (PHP 5.2 min. required)
3 - Uncompress downloaded file in the root folder of you web server

Here are the folders/files on the zip.
Move the mouse over the folders/files for more information.
  •  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 - Configure your server
5 - Launch your servers (Apache and MySQL)

6 - Connect on your home web page (http://localhost/your_website)

7 - Connect on your administrator panel
(http://localhost/your_website/en/wsp-admin/connect.html)
Connect to administrator panel
(default login:admin, password: admin)
The password is saved in the file /pages/wsp-admin/.passwd

8 - Configure your futur website

Consult issue tracker to find help or ask your question to the WSP team.


First pageFirst 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-2020 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 22/04/2020
 * @version     1.3.1
 * @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/en/my-page.inc.php

    
define("MY_PAGE_TITLE""My page title");
    
define("MY_PAGE_DESCRIPTION""My page description");
    
define("MY_PAGE_KEYWORDS""keyword 1,keyword 2,keyword 3,keyword 4");
    
    
define("MY_BOX""My Box");
    
define("HELLOWORLD""HelloWorld");
?>


Download sample
URL to test this sample: http://localhost/votre_site_web/my-page.html

View this example result (DialogBox)
View this example result (New page)


More informationMore information

More information are available on the tutorials page
or you can consult help videos.


Share

 


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