In functions.php I have a function called getUser. I want to use that function in ajax_functions.php, but when I call it, I get the "Function does not exist" message. I used include to include the functions.php file into ajax_functions.php but that gave errors saying it couldn't open such folders as libs/Smarty.class.php.
How can I call getUser in the ajax_functions.php when the function is wrote in functions.php I hope I don't have to have the function in both pages, I was hoping to just have it in the one.
Hope you understand... thanks for the help if any.
That's all there really is to it. You just need to remember how PHP works, we're including the files in the index.php file, therefor, in reality we're actually pulling the data out of those files and essentially "pasting" it into the index.php file.