Compression
What is this ?
You probably know every time your browser is downloading an assets (scripts, images, css), an HTTPRequest is done on the backside.
You also know that bigger in the assets you are loading is, the most time is takes.
The Woozoo answer
So Woozoo will take care of reducing the size of your scripts by using Packer. It will also compute all your scripts in one so the number of request is the minimum.
If you already have an application using Woozoo, you know there is three requests per module (the module configuration file plus the model helper and controller helper) plus one for the the framework configuration file and one for the MVC configuration file.
Let's say you have 10 modules. 3 x 10 + 1 + 1 = 32 requests. That's a lot ! So Woozoo will compute your files to reduces it to two. Nice !
Configure to use compression
The compression requires to have a PHP server. If you don't have that you can go to the "I don't have a PHP server" section.
It is really easy ! Just change your framework configuration file like that :
<?xml version="1.0" encoding="utf-8"?> <items> <framework> ... <compression> <item useDynCompression="true" /> <item dynCompressionUrl="WZFwk/php/dyn/dyn.php" /> <item usePacker="true" /> <item useCache="true" /> ... </compression> ... </framework> ... </items>
You can have more information about useDynCompression and other in the Framework configuration file section
I don't have a PHP server
In this case, you will have to take care of more thing.
You can create for each module a file that merge your model and controller helper. The name of this file depends on what you choose as compressedName in your Framework configuration file. This file will have to be in the same folder than your model and controller helper.
Then go to the module configuration file and set the compressed tag to true.