Using theme function outside a module

liaolliso - September 22, 2009 - 01:37

Hi,

I got a problem when i use drupal theme function outside a module.

I have added these two lines in my file under my drupal root:

require_once('./includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

When i use return theme(), it didn't go to the page as expected.
So what i want to ask is that is there any way to register a theme and tell the theme function to theme the right page.

Thanks in advance!

 
 

Drupal is a registered trademark of Dries Buytaert.