Posted by VocChoVui on April 8, 2010 at 6:08pm
Hello,
I try to create a new theme for Drupal 7 alpha 3 named mytheme. On this new theme folder, I create new info file, then copy style.css, template.php, page.tpl.php from Garland theme. On my module I register "home" template on theme hook function:
"home" => array(
"template" => "home",
"variables" => array("user" => NULL)
)I also create home.tpl.php on my module.
If my website uses Gerland theme, then everything is ok, but if I use my theme, when I visit home page (this page uses "home" template), then the following error occur:
* Warning: include(E:\xampp\htdocs\drupal7a3/sites/all/themes/mytheme/home.tpl.php): failed to open stream: No such file or directory in theme_render_template() (line 1243 of E:\xampp\htdocs\drupal7a3\includes\theme.inc).
* Warning: include(): Failed opening 'E:\xampp\htdocs\drupal7a3/sites/all/themes/mytheme/home.tpl.php' for inclusion (include_path='.;E:\xampp\php\PEAR') in theme_render_template() (line 1243 of E:\xampp\htdocs\drupal7a3\includes\theme.inc).It means that the Drupal does not find template file on module folder, it find template file on theme folder, so the error occurs. How do I solve this problem?
Thanks for any help.
Sam