Thread: Grrr Functions View Single Post Old 03-10-2008, 06:46 PM
  #2 (permalink) The Acquainted Join Date: Nov 2007 Posts: 154
Thanks: 31 SOCK is on a distinguished road  How are you
including those two files?  It should work like so: PHP Code:
Is that what you're doing?  Something else to consider, you
really shouldn't allow your function to use echo and actually
display something to the page. The idea of functions is to
create a module or engine that you can plug some value into and
have another value spit out the other end. For maximum
flexibility, you should do PHP Code:
function title$sitename$page ) { $sitename ' - ' $page;
'<title>'title$siteName'Home' ) .'</title>' This way you're not
tied into using HTML in the function output, and you've just let
yourself build a function that can be used in just about any
instance. Of course with something so finely grained that it's
only job is to output the page title, this may not be the best
example, but when you start building more advance functions (and
ev