|
PHP Layout Class - Programming your Webpage
Robbin Zhang
Abstract:
There were a couple of discussions on the PHP3 mailing list about whether
PHP is a scripting language or just for embedding in HTML only. From
the web application developer's point of view, I would use PHP as
an alternative to Perl/Java. In this article, I will show you how
to write PHP classes and how to use class.layout
(download) to program your web applications.
Main:
PHP3 has the power for serious web applications programming.
If you want to create dynamic web applications, embedding data in
HTML tags is not enough. Please unleash the power of PHP. One big
thing missing from the PHP community is that the lack of useful classes
or libraries which makes Perl so successful. Class.layout is an
attempt to create useful libraries for PHP progammers.
The key benefits of PHP Layout class are:
- Pure programming without dealing with HTML tags. You don't have to count <TABLE>,<TR> etc. HTML tags anymore.
- Achieve the most flexbility in web page creation.
- Fast development.
Instead of waiting for templates from designers, you have the full
power to quickly create COMPLEX pages from class.layout. PHP Layout
Class uses object programming, but also provides "helper functions"
for easy usage and hides the implementation detail from users.
The raw object-programming syntax to create a table in class.layout
is:
<?php
$atable = new Table(array("width"=>"500"));
$window->insert($atable);
?>
But class.layout also provides "helper functions" - 'insert' and
'table' which makes it more instinctive for non-object-programming
users and requires less typing.
<?php
insert($window, table(array("width"=>"500")));
?>
| Comments: | ||
| RE: How do I find window.location.href in PHP? | Kalid | 09/07/05 05:40 |
| RE: Class Newbie Here! | Ken | 05/17/04 22:26 |
| RE: How do I find window.location.href in PHP? | joren | 11/12/02 17:20 |
| RE: Template are much better | Neil J. McLeish | 09/07/02 03:37 |
| RE: Template are much better | Michael | 08/03/02 21:04 |
| Template are much better | Bryan Alsdorf | 06/20/02 16:39 |
| RE: PHP_SELF | Tom | 05/30/02 10:10 |
| learn | starter | 05/14/02 05:48 |
| RE: PHP_SELF | Ali Zubayer Faruq | 05/05/02 04:48 |
| Functions printer | ranjith | 03/12/02 05:37 |
| RE: PHP_SELF | Nick | 01/30/02 02:27 |
| Multiple selects limitations | Simone Capra | 01/25/02 06:33 |
| RE: PHP_SELF | Henning Blunck | 01/08/02 11:37 |
| Class Newbie Here! | christian | 12/19/01 07:46 |
| Hello | Shamim | 12/05/01 02:09 |
| How do I find window.location.href in PHP? | Randy Tayler | 10/30/01 17:14 |
| RE: Not for a serious project | Horacio Lopez | 10/27/01 22:27 |
| RE: A bit different implementation | Luke | 09/23/01 14:51 |
| RE: Not for a serious project | Luke | 09/23/01 11:39 |
| table viewer for Postgres | Kiran | 08/25/01 10:59 |
| Functions printer | Daniel | 08/14/01 15:57 |
| What about Speed and more complicated pages | Jan Varwig | 06/17/01 01:50 |
| Need to build a dynamic template | Richard | 06/13/01 07:28 |
| PHP_SELF | Chi-Thuan Truong | 05/23/01 11:00 |
| RE: including documents in a particular folder | Bob | 02/07/01 06:07 |
| RE: Error report + | Rodrigo | 01/21/01 04:19 |
| including documents in a particular folder | Doug Dzierzak | 01/08/01 17:07 |
| A bit different implementation | Idan Sofer | 01/02/01 15:22 |
| RE: Not for a serious project | Dallas Kropka | 12/20/00 23:46 |
| RE: Not for a serious project | sander | 11/30/00 04:45 |
| RE: Not for a serious project | JayH | 11/27/00 11:41 |
| RE: Not for a serious project | Eric Mueller | 11/24/00 21:29 |
| RE: Not for a serious project | Lennie | 11/13/00 14:32 |
| RE: Not for a serious project | MikeFM | 11/03/00 10:44 |
| Not for a serious project | JAvier Leyba | 10/30/00 14:35 |
| Error report | Eusebe Dollars | 09/01/00 05:45 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


