Welcome Guest, Not a member yet? Register   Sign In
Setting a globally used function to run automatically
#5

[eluser]hightower[/eluser]
So is it a done thing to have this in my header_view.php file:

Code:
$var = $some_custom_function();

echo $var['test'];
echo $var['test2'];

Because that would seemingly be the answer to my question, but I didn't know whether it was considered bad coding practice to run the function from my helper within a view file?


Messages In This Thread
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 07:08 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 08:07 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 08:09 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 08:14 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 08:39 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 08:46 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 09:16 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 09:31 AM
Setting a globally used function to run automatically - by El Forum - 06-29-2009, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB