পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Monday, March 13, 2017

Sencha Touch - Architecture

The bottom layer for any mobile application is OS on top of that any or everything is built upon. then we have the browers on which we will be running the we applications. It could be Chrome , Safari, IE anything. the upper layer to all that is a W3 standards which are common for all.
so sencha touch stands or built on top of w3 standards which is nothing but HTML5. so Sencha Touch is built on html5. which makes a single application to be compatible with diffreent browsers of different devices.
Sencha Touch is the combination of three frameworks ExtJs, JqTouch, Raphael(vactor drawing).It follows MVC architecture.
MVC – Separating our code into more managable chunks. Below image will explain the basics of MVC.
Although the architecture is not mandatory for the program but it is best practice to follow this structure to make your code highly maintainable and organized.

Project structure With Sencha Touch App

----------src
----------resources
-------------------CSS files
-------------------Images
----------JavaScript
--------------------App Folder
-------------------------------Controller
------------------------------------Contoller.js
-------------------------------Model
------------------------------------Model.js
-------------------------------Store
------------------------------------Store.js
-------------------------------View
------------------------------------View.js
-------------------------------Utils
------------------------------------Utils.js
--------------------------------app.js
-----------HTML files
Sencha Touch app folder will reside in JavaScript folder of your project. The App will contain controller, view, model, store, utility files with app.js.
app.js: the main file from where the flow of program will start, which should be included in main HTML file using <script> tag. App calls the controller of application for rest of the functionality.
Controller.js: It is the controller file of Sencha Touch MVC architecture. This contains all the control of application, the events listeners the most functionality of code.It does following tasks: performs routing, intermediate between view and model, execute events.
View.js: It contains the interface part of the application which shows up to user. Sencha Touch uses various UI rich views which can be extended and customized here according to the requirement.
Store.js: It contains the data locally cached which is to be rendered on view with the help of model objects. Store fetches the data using proxies which has the path defined for services to fetch the backend data.
Model.js: It contains the objects which binds the store data to view. It is representation of the real world object which basically deals with database.
Utils.js: It is not included in MVC architecture but a best practice to use to make the code clean, less complex more readable. We can write methods in this file and call them in controller or view renderer where ever required. It is helpful for code reusability purpose as well.

No comments:

Post a Comment