Layouts

Layouts are kind of templates files, but they do not refers to a particular view.
Let's call them headless layouts.

You can create any kind of tree structure inside the 'layouts' folder of your component, and then call them with an easy syntax.

Declaration

Have a look in the given example in your component:

layouts/form/fieldset.php

The layout recieve the datas trough $displayData array.

Instance the layout

echo JLayoutHelper::render('form.fieldset', array(
    'fieldset' => $fieldset
));

form.fieldset is the namespace wich will automatically load :
layouts/form/fieldset.php

learn more : JLayout

First of all... I have to congratulate you guys for the awesome tool... I came here only to see what this thing was up to and I have to tell that I'm very impressed with what this tool can do. French guys are making a revolution on Joomla... first with Seblod and now Cook...
Griiettner (forum)

Get Started