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 : TextArea with 
PHP code editor

Tutorials

>

Tutorial Textarea

>

Tutorial : TextArea with PHP code editor


Textarea-07: Tutorial of the composant Textarea of the PHP FrameWork WebSite-PHP.

Tutorial : TextArea with PHP code editor:



Go back to tutorial of the componant Textarea



Source code

Source code


File: /pages/tutorials/textarea/textarea-07.php

<?php
class Textarea07 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextArea with 
                                PHP code editor"
;
        
        
// Read PHP code of the current file
        
$code_file = new File(__FILE__);
        
$code $code_file->read();
        
$code_file->close();
        
        
// Create TextArea
        
$this->render = new TextArea($this);
        
$this->render->setValue($code);
        
$this->render->setWidth(550)->setHeight(300);
        
$this->render->activateSourceCodeEdit("php");
    }
}
?>


Go back to tutorial of the componant Textarea


Share

 


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