niyum framework
DESCRIPTION
The first php framework by khmer developerTRANSCRIPT
![Page 1: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/1.jpg)
Niyum Framework
Presented by: Sitthykun LY
Email: [email protected] / [email protected]
Tel: (+855)12 3060 49 / (+855)95 7788 39
![Page 2: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/2.jpg)
Content
• History• Why Framework• Which Framework(Make decision)• Concepts MVC ORM URL Mapping
• References• Thanks you
Niyum Framework
![Page 3: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/3.jpg)
History
• In during I’d worked in a Company. My boss suggested me to learn Mootools (javascriptFramework) to help him to develop a Mcdonalweb site and Others.
• A project required to install Spring Framework to do the website so he need me to joint the team.
• I asked myself, why did he use the framework instead of raw coding?
• I’ve learnt and tested many frameworks. And I desired I will create my own framework in the future.
Niyum Framework
![Page 4: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/4.jpg)
Why Framework
• Because of we’ve not written lots of statements again and again.
• Time is limited(we have to set deadline).• We get more and more tasks everyday. • We need libraries and/or Classes.• We need standard code.• We need shorter.• ….
Niyum Framework
![Page 5: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/5.jpg)
Which Framework(Make decision)
• Before we will select a framework– Must be known a project’s scope.– Must be analyzed and select a model
• Select a framework– Must be known the strong and weak points– Heavy or light
Niyum Framework
![Page 6: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/6.jpg)
Which Framework(Make decision) (cont.)
• (Java) Spring, Struts, …• (Python) Django, Web2py, …• (PHP) CakePHP, Zend, …• (Ruby) Ruby on Rail, Gems, …• (Javascript) Jquery, Mootools, …• …
Niyum Framework
![Page 7: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/7.jpg)
Concepts
Niyum Framework
![Page 8: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/8.jpg)
Concepts (cont.)
• MVC– Model View Controller– The main aim of the MVC architecture is to separate
the business logic and application data from the presentation data to the user.
– Here are the reasons why we should use the MVC design pattern.
• They are reusable : When the problems recurs, there is no need to invent a new solution, we just have to follow the pattern and adapt it as necessary.
• They are expressive: By using the MVC design pattern our application becomes more expressive.
Niyum Framework
![Page 9: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/9.jpg)
Concepts (cont.)
• MVC->Graphic
Niyum Framework
![Page 10: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/10.jpg)
Concepts (cont.)
• Controller
Niyum Framework
![Page 11: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/11.jpg)
Concepts (cont.)
• View
Niyum Framework
![Page 12: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/12.jpg)
Concepts (cont.)
• Model
Niyum Framework
![Page 13: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/13.jpg)
Concepts (cont.)
• ORM– Object Relationship Model
• Object: An object is any unique person, place, or thing, either physical or conceptual.(Class: Template of object)
• Model: Table of database
Niyum Framework
![Page 14: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/14.jpg)
Concepts (cont.)• ORM->Example:tbl_menu(id, menu, link, publiced, group_id, parent_id, level, order_id, access_level, target, hits)
Niyum Framework
![Page 15: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/15.jpg)
Concepts (cont.)
• URL Mapping– URL mapping tests take an application relative
URL, and assert that; it is mapped to a controller and/or action or view, the params contained within the URL are extracted as expected, and that the destination actually exists.
Niyum Framework
![Page 16: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/16.jpg)
Concepts (cont.)
• URL Mapping->Example
Niyum Framework
![Page 17: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/17.jpg)
References
• http://osm7.cs.byu.edu/OSA/orm.html• http://www.roseindia.net• http://www.apsstandard.org• http://www.grails.org
Niyum Framework
![Page 18: Niyum framework](https://reader034.vdocument.in/reader034/viewer/2022052506/557d9342d8b42a50158b4e49/html5/thumbnails/18.jpg)
Thanks you : )
Niyum Framework