This functionality provides the minimized requests from client and even help to boost up the loading time .
Usually this function will be called in header of view to call css and javascript which can be called by request of different pages.
css,javascript files location should be defined before using pack that you can check it out on config .
First of all, if you want to call this pack-css, should have "Html" helper can support a lots of stuff on front-end side.
$FE->loadHelper("html");
Packing-css will keep the file list as buffer before flush like following.
$FE->Html->cssPack("style");
$FE->Html->cssPack("style1");
$FE->Html->cssPack("style2");
And the first-calling css will be flushed first and last will be last therefore you need to consider of order sometimes makes you be bothered with broken css.
Following line will generate the pack css link.(don't forget the "echo" )
echo $FE->Html->cssPackLink();
This pack will be doing as similar as css job.
$FE->Html->javascriptPack("js1");
$FE->Html->javascriptPack("js2");
$FE->Html->javascriptPack("js3");
Generate the javacripts with packed
echo $FE->Html->javascriptPackLink();