~~LANG:FR@fr:manuel-1.1:principes~~ In questo paragrafo viene spiegato il funzionamento del framework ed i principali oggetti che avrete occasione di utilizzare. Il framework รจ basato sul principio che ad ogni azione corrisponda un URL. ===== Passaggi dell'esecuzione ===== {{http://jelix.org/images/schema_logic.png}} - Il server web riceve una richiesta HTTP * se non diversamente specificato nell'URL della richiesta, viene eseguito lo script @@F@index.php@@. * questo script crea una istanza dell'oggetto @@C@jRequest@@ e del coordinatore @@C@jCoordinator@@ * l'oggetto @@C@jRequest@@ analizza il contenuto della richiesta HTTP ed estrae le informazioni da essa. Tra queste ci sono, ad esempio, l'URL da richiamare ed i dati inviati con il metodo POST. * in particolare @@C@jRequest@@ determina il nome dell'azione da eseguire ed il modulo in cui essa si trova. - The action parameter contains the controller name and the method to be executed. This controller is thus instanciated and the method executed. The method retrieves request parameters in order to know what to do. - the method executes business processes, et retrieves eventually some results which will be used for the response - The method of the controller create an instance of a @@C@jResponse@@ object which is setup with data or else (initialization of templates etc..). - Jelix gets this @@C@jResponse@@ object, launch the generation of the final document (html page, pdf..) and then send it to the browser. ===== What you will have to manipulate ===== In general, you won't have to use a @@C@jRequest@@ or @@C@jCoordinator@@ object. On the other hand, you will have to create a @@C@jController@@ object to include the code of an action to it. This object proposes methods to get parameters extracted by @@C@jRequest@@, but also to get a @@C@jResponse@@ object. You thus will have to handle this @@C@jResponse@@ object to specify the data to send to the browser, in the code of the action, in addition to handling the "business" objects. ===== Objects in details ===== Let's see now a description of each object of the core.