FreddysHouse  

Go Back   FreddysHouse > Techie Discussion

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16th April 2006, 04:11 PM
wyrd_fish's Avatar
Super Freddie
 
Join Date: 27th Dec 2003
Location: In the Navy!!!
Posts: -
wyrd_fish is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 16th April 2006, 05:43 PM
KevinUK's Avatar
Super Freddie
 
Join Date: 22nd Dec 2003
Location: Milton Keynes
Posts: -
KevinUK will become famous soon enough
My current project was for me to use CSS for the design of the website, my next project will be the same as you, OO PHP! I only have 1 or 2 functions at the minute.
__________________
You can have programs written fast, well, and cheap, but you only get to pick 2...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16th April 2006, 05:53 PM
wyrd_fish's Avatar
Super Freddie
 
Join Date: 27th Dec 2003
Location: In the Navy!!!
Posts: -
wyrd_fish is on a distinguished road
does anyone know if static functions are supported by PHP?

as the current method of instansiation is a little poo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 17th April 2006, 02:41 PM
TheJkWhoSaysNi's Avatar
Regular Freddie
 
Join Date: 23rd Dec 2003
Posts: -
TheJkWhoSaysNi is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 17th April 2006, 04:14 PM
wyrd_fish's Avatar
Super Freddie
 
Join Date: 27th Dec 2003
Location: In the Navy!!!
Posts: -
wyrd_fish is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 19th April 2006, 11:43 PM
Maljonic's Avatar
One of Freddy's beloved
 
Join Date: 22nd Dec 2003
Location: York
Posts: -
Maljonic has a spectacular aura aboutMaljonic has a spectacular aura about
I wish I understood what you were doing so I could comment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  FreddysHouse > Techie Discussion

Tags
project

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT +1. The time now is 09:21 PM.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright (c) 2003-2008, Freddy. All rights reserved.
Page generated in 0.33112 seconds with 14 queries using server 193.138.95.50

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109