carlmcdade / Movico-D6

Framework for creating Drupal modules using MVC design and PHP tools for OOP
http://www.drupal.se/movico_6
11 stars 0 forks source link

Problem with theme_render_template #2

Open ghost opened 14 years ago

ghost commented 14 years ago

Hallo Carl,

at first thank you for your great work. The MVC-structure would make Drupal-module more flexible.

I have used your example to create an own structure of my Drupal-module. But I have a Problem with the call "theme_render_template($path, $variables)" in "mvc_view($view, $variables = NULL, $output = NULL)". Drupal displays an error, that it could not found the template-file of "$path". In your example everything is ok and this error is not triggert.

What is going wrong at my code? I would be very grateful if you could help me.

Best regards from Germany the-sandman

carlmcdade commented 14 years ago

Sure, but I don't see any code posted. You can post it up at http://www.facebook.com/home.php?#!/pages/Movico/121322901224223?ref=ts on the wall or start a discussion.

ghost commented 14 years ago

Thank you for your quick answer. I have solved the issue by my own. Of course, It was my mistake. At the function-call "theme_render_template($path, $variables)" in "mvc_view($view, $variables = NULL, $output = NULL)" my path was with "$_SERVER['DOCUMENT_ROOT'] . base_path() [...]". So Drupal could not include the given theme.

Nevertheless thank you for your effort.

Best regards from Germany the-sandman

carlmcdade commented 14 years ago

No problem,

Thanks for the kick in the pants. I need to get Movico more refined and documented with an example. Have not done anything yet because I ran into some non-disclosure tangles. But I think I can get some things done and up soon.

ghost commented 14 years ago

Hallo Carl,

I use your module since module for a few days and I enhance it at some areas, e.g. with interfaces and observer-pattern for models.

When everything works great for me, I can send you my updates of your module.

Greetz the-sandman

carlmcdade commented 14 years ago

That would be great. You Can send your changes to hiveminds.co.uk at gmail.com. You might want to fork the repo here and make your changes available for merging into this project.