-
May 12th, 2007, 11:42 AM
#1
function_exists functions cannot locate the function
I have a php page in /theme/default/sidebar.php and the do_calendar function is in /function/calendar/calendar.php
I have written code
Code:
function_exists('do_calendar')
in the side.php but it return false.
I would like to know how to include the functions in calendar.php in sidebar.php?
Thank you.
-
May 12th, 2007, 02:04 PM
#2
Re: function_exists functions cannot locate the function
Are the two pages in some way reading from each other by one of the four following functions?
include
require
include_once
require_once
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
May 13th, 2007, 05:51 AM
#3
Re: function_exists functions cannot locate the function
i think it's the sidebar page that will read the calendar.php but not vice versa.
Thank you.
-
May 13th, 2007, 06:15 AM
#4
Re: function_exists functions cannot locate the function
I have tried to use require_once, but then the whole section cannot be displayed....
-
May 13th, 2007, 08:35 AM
#5
Re: function_exists functions cannot locate the function
So then in sidebar.php you must have one of those four functions. If nothing shows up then you are probably duplicating them and throwing PHP errors. Check your error.log file for PHP.
Also, make sure you are calling function_exists after the include/require statement or else it will return false.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|