[development] theme_foo() functions vs tpl.php templates (was Move all core modules into their own directories)

Dries Buytaert dries.buytaert at gmail.com
Thu May 4 15:37:02 UTC 2006


> Not really. This was how it was initially designed to work.
> For now, i think the best mechanism would be what jonbob suggested :
>
> 1. theme functions call the theme engine (_engine_callback('name',
> array('var1' => 1, 'var2' => 2));
> 2. the engine_callback hands that off to the first available thing it
> can.

If we remove the theme_ function (but still allow them to be used for
those who want to), does that mean that PHPTemplate becomes the
default fall-back?

If I'm using Smarty, and the designer has chosen not to
overwrite/reimplement a particular PHPTemplate, we'd still have to
load and use the PHPTemplate engine?  Similarly, if I don't want to
use PHPTemplate, I'd have to overwrite all theme functions?

If PHPTemplate is not the default fall-back, this change would create
a lot of duplication.

Or am I wrong?

--
Dries Buytaert :: http://buytaert.net/


More information about the development mailing list