To all developers working on 1.9:

Julio is currently adding Smarty to the 1.9 codebase. This means that
all new scripts created (which have some kind of visible output) should
use Smarty as well to avoid duplicating the efforts to get a fully
template-able system.

This effectively modified a few things (although you can still use the
old mechanism if you are only updating old scripts). In particular, the
Display::display_header() mechanism should be replaced by smarty calls
now and, inside the template files (".tpl" files inside
templates/layout"), we are using other mechanisms for some
api_get_path() calls.

Overall, there's nothing really complicated in all this, and having a
look at a few examples should be enough for any PHP developer to
understand it.

To understand how it works, please have a look at user_portal.php, which
is the first script to effectively implement Smarty.

There might be a few new structural changes around this in the next few
days, but it is safe to assume that starting from the week after the
coming week, the mechanism will be pretty stable.

If you have any doubt, please don't hesitate to contact me, I'll explain
in more details for you through a short audioconference.

Yannick


_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

Reply via email to