Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:05:57 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Hello World OOP Module  (Read 799 times)
Ralf (Berlin)

Offline Offline

Posts: 1314


« on: February 27, 2008, 04:34:09 PM »

Hello,

I've thought it's a good idea to develop a Hello World Module which is fully object oriented, separates strongly code, content & design, grant a very easy an simple data access and show that it is possible to create your own module with less than 100 lines of code  cheesy

OK, don't laught, it' ready an my contribution to the WebsiteBaker GoPHP5 initiative.  cool

The main goals of the Hello World OOP Module are

    * show how to develop modules with object oriented technics (OOP)
    * show how to use PHP 5 features
    * show how to separate code, content and design
    * provide you the class dbConnect for a easy and secure administration of database tables for use in your own modules
    * provide you the class tParser with an easy to use template parser
    * step-by-step manual and documentation

Hello World OOP Module

    * is no replacement for the official Hello World Module by Christian Sommer (doc)
    * is not compatible to PHP 4

Ok, now it is ready for the first beta testing and for many, many comments and hints of you.

Please download the Hello World OOP module from my homepage (English). You will also find a Quickstart and File descriptions. The manual is still under construction.

Have a lot of fun!

Ralf
Logged
doc
Guest
« Reply #1 on: February 27, 2008, 04:57:46 PM »

Hello Ralf,

wow already the Beta version is a great contribution to WB (works and ships with a link to basic documentation).

Fully agree, todays modules lack (beside other weak areas) from mixing PHP code, layout and HTML tags in single files. Only a few modules make use of the WB parser class.

Another thing I like much is the OOP part (even if I have only limited experiency with OOP; more modular experience). This allows to develop modules only supported by PHP 5 or higher which would help to get rid of the outdated PHP 4 in the near future  wink

Really looking forward for the OOP manual. Would be nice to have standards like frontend/backend CSS files editable via the module itself. As you provide a frontend user interface, this module needs be tested for security vulnerabilities (XSS, SQL injection etc.).

However, this is a very important contribution for websitebaker, thank you very much.

Regards Christian
« Last Edit: February 27, 2008, 05:54:05 PM by doc » Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #2 on: February 27, 2008, 06:14:38 PM »

Hello Christian,

thank you for the congratulations  cool

I really believe that OOP is the best way to implement modules to WB. Especially if you have no experience with programming modules for WB you dont know where to start, how to begin. At least OOP will give you a straight way: define this, and then do this and dont care about the rest - it still works  wink

Quote
even if I have only limited experiency with OOP; more modular experience

Without procedural programming know how OOP make no fun, it's very important to have it but not to think procedural if you try to create a class...  rolleyes

I haven't forgotten the CSS, we will need editable template files too - but it is to much work at once and so I stopped now to test the module itself, complete the documentation, write some how to's and when it is ready for a stable version we give it free, start with CSS and HTT for the next version and... I have a lot ideas  grin

Regards
Ralf
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!