06-19-2009, 07:55 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Dec 2008
Posts: 15
Thanks: 2
|
hook sytem
Okay after hours and hours of Google i have had it.
So what i am trying to do is make a hook system but unsure on how to do it.
so i can have a pages with say
Code:
<?php
code here blah blah
$hook->load('me_start');
more code b;lah blah
$hook->load('me_end');
and in the page that gets included some where it has
Code:
<?php
$hook->use('me_start', 'coolfunc');
function coolfunc () {
$wow = 'sup';
echo $sup;
}
?>
so all up it will just put that code whats in that function to were $hook->load is.
something along them lines.
|
|
|
|