In the last ar­ti­cle in the June is­sue of we dis­cussed the de­vel­op­ment en­vi­ron­ment—the Netbeans IDE, the Sym­fony frame­work and the XAMPP Web server. In this ar­ti­cle, let us learn more about Sym­fony ap­pli­ca­tion de­vel­op­ment, which in­cludes the Sym­fony framew

LINUX For You,

OpenSource For You - - DEVELOPERS LET'S TRY -

Sym­fony is based on the MsC ar­chi­tec­ture, with spe­cial em­pha­sis on the ab­strac­tion of var­i­ous lay­ers. This re­duces de­pen­dency among the dif­fer­ent com­po­nents. For ex­am­ple, at any point dur­ing de­vel­op­ment, you can change your data­base engine, or the HTML view of your ap­pli­ca­tion, with neg­li­gi­ble im­pact on the sched­ule. We will see how this is pos­si­ble.

Sym­fony uses an OoM (Ob­ject oe­la­tion­ship Map­per) and a data­base ab­strac­tion layer to seg­re­gate the data­base layer from the ap­pli­ca­tion layer. The OoM maps classes to data­base tables; queries are sent to the data­base via the OoM. Cur­rently, Sym­fony sup­ports two OoMs—Doc­trine and Pro­pel. WhH YLHw-UHODWHd fiOHV Ln WhH ‘tem­plates’ folder. Then there is the ‘web’ folder, which holds all the CSS, gavaScript and im­ages. For ex­am­ple, if the peo­ple mod­ule has a search func­tion, then WhH FRdH IRU VHDUFh wLOO EH Dd­dHd WR WhH fiOH ‘ac­tions.class. php’ ; and the re­sult of the func­tion will be dis­played with the tem­plate ‘searchSuc­cess.php’, which will be dec­o­rated with the ‘lay­out.php’ fiOH.

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.