lost functions....
Posted: Mon May 21, 2007 11:51 pm
feyd | Please use
in mod.php
Whenever I trie to access that function included in that external file I get nothing.... Thanks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello! Sorry to bother with such a simple question.. documentation, books, everything's let me down despite I know it is in there..Code: Select all
class shell{
function loader{
$this->head();
}
function head(){
include (mod.php);
echo $this->mod('head'); //should say theme
}
}Code: Select all
<?php
function mod($opt){
if($opt=='head'){$return='theme';)
return $return;
}
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]