![]() |
|
||||
|
my new project
this is very much work in progress at the moment...
my latest site rebuild, i stated this last night, i deceded was to be crazy modular affair so far I have a basic script that scans a dir for modules, creates the menu and then outputs the contence of the currnet module i'm quite prowd of it ![]() the trouble is, it's all getting a little complicated, and i was wondering if anyone had any tips? it's also my first attempts with any OO in PHP ![]() you can find it here and here Last edited by wyrd_fish; 16th April 2006 at 04:19 PM. |
| Sponsored Links |
|
||||
|
It's quite nice but you're not seperating markup from code.
Oh, and php isn't java. You don't need getters and setters. (Though i'm unsure whether it's considered good practice or not to put them in). Your code isn't completley OO. The start of the program could just be. new main(); or whatever you want to call your root class. I began writing a CMS in OO php a few months ago, never finished it, but i got most of the back end done. Strangely, I had a module loading system that was almost identical to how you're doing it. Unfortunatly i found that it wasn't feasable it use it because modules could be so pontentially different (I wrote a PM system and a php syntax hilighting module to test) . I decided that because modules would need to be polymorphic, they would not be able to interact enough with the original system to be worth using. Perhaps you can overcome this. It's a good start in OO php though.
|
|
||||
|
yeah, i've been thinking about it alot today
and it's either going to be modular, with a lot of setting up, or pretty un-modular i also started re writeing it today, but ran out of steam i use getters and setters as that's how i was tought, in java, it's just habbit oh, and PHP can support static methods |
![]() |
|
| Tags |
| project |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Project 880 | ECA | General | 2 | 5th February 2006 06:18 PM |
| Microsoft Project 2003 | eggy | Technical Help | 9 | 8th December 2005 04:46 PM |
| Project Offset... | Roteca | General Discussion | 1 | 29th August 2005 04:46 AM |
| College web project | Exoshear | Techie Discussion | 1 | 16th April 2004 12:35 PM |
| Research project: Boredom in MMOGs | mmogresearch | General | 16 | 26th February 2004 10:45 AM |