tags:

views:

42

answers:

1

right now, i have to create a framework. and need to understand more about the concept behind it. so, is there any documentation about how to build core of a framework ?

or at least, what is your approach when you have to create one ?

btw, what i mean with core, is, the skeleton. the part of framework that works as controller who control the controllers.

for example, my personal question : 1. How we create easy to maintain and customize configs ? 2. How we load a class that have dependency with another class ? 3. How we treat our models ? 4. etc ?

@edited : the framework is would be a framework for wordpress theme.

i'm sorry if the question is too broad. but any reference will be great.

+5  A: 

K, I usually tend to champion the Not Invented Here mentality, encouraging people to re-invent the wheel as a learning exercise... but the way you've asked this question suggests to me that you've decided to build a framework before deciding why you want or need that framework.

What do you want this framework to do? Equally, what do you not want it to do?

Once you've made that decision, read up on some WebEA design patterns and decide what combination of patterns best suits your goals.

Asking "How do you write the core of a framework?" is like asking "How do you structure literature?" in that there's no real answer without knowing if you're talking about a novel or a play or a poem.

LeguRi
+1 Really good answer :)
Sarfraz
well put +1 !!!
Romain Hippeau