mobile app club (an introduction to symfony )

17
ion and Communication Technologies Coordinating Office 2013 - Mobile App Club (An introduction to Symfony) Briland Hitaj ICTCO, 08.05.2014

Upload: reidar

Post on 23-Feb-2016

86 views

Category:

Documents


0 download

DESCRIPTION

Mobile App Club (An introduction to Symfony ). Briland Hitaj ICTCO , 08.05.2014. Presentation Outline. What is Symfony Use a Framework??!! WHY??? Ok, but why Symfony ??? Let’s get started (Library Project). What is Symfony ???. Open Source PHP Web applications development framework - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Mobile App  Club (An introduction to  Symfony )

Information and Communication Technologies Coordinating Office

2013 - 2014

Mobile App Club(An introduction

to Symfony)Briland Hitaj

ICTCO, 08.05.2014

Page 2: Mobile App  Club (An introduction to  Symfony )

Presentation Outline What is Symfony Use a Framework??!! WHY??? Ok, but why Symfony??? Let’s get started (Library Project)

ICTCO 2013 2

Page 3: Mobile App  Club (An introduction to  Symfony )

What is Symfony??? Open Source PHP Web applications

development framework Developed by Sensiolabs Licensed under MIT Open Source License

ICTCO 2013 - 2014 3

Page 4: Mobile App  Club (An introduction to  Symfony )

Use a Framework??!! WHY??? Code and File Organization Utilities and Libraries

Form validation Input/output filtering Database Abstraction etc…

The MVC Pattern Model: representative of your data structures,

usually your database View: page templates and output Controller: handle requests and bind everything

together Reasons: Cleaner code, easy to extend and

maintain faster and more secure applicationICTCO 2013 - 2014 4

Page 5: Mobile App  Club (An introduction to  Symfony )

OK, but why Symfony??? Fast Flexible Expandable (bundles) Stable

ICTCO 2013 - 2014 5

Page 6: Mobile App  Club (An introduction to  Symfony )

Let’s get started First Download Symfony from

http://symphony.com/download

ICTCO 2013 - 2014 6

Page 7: Mobile App  Club (An introduction to  Symfony )

Download composer Download COMPOSER.PHAR from

https://getcomposer.org/

ICTCO 2013 - 2014 7

Page 8: Mobile App  Club (An introduction to  Symfony )

Project Structure

ICTCO 2013 - 2014 8

Page 9: Mobile App  Club (An introduction to  Symfony )

Execute php composer.phar update

Install the latest and necessary bundles php composer.phar selfupdate

Periodically get the latest composer.phar distribution

ICTCO 2013 - 2014 9

Page 10: Mobile App  Club (An introduction to  Symfony )

ICTCO 2013 - 2014 10

Page 11: Mobile App  Club (An introduction to  Symfony )

Create a bundle Symfony works with bundles – a container

for your files Will contain controllers, views and models (MVC

architecture) To generate a bundle execute:

php app/console generate:bundle

ICTCO 2013 - 2014 11

Page 12: Mobile App  Club (An introduction to  Symfony )

What has generate:bundle done???

ICTCO 2013 - 2014 12

Page 13: Mobile App  Club (An introduction to  Symfony )

Now we are good to go… Configure link to database

app.config/parameters.yml

ICTCO 2013 - 2014 13

Page 14: Mobile App  Club (An introduction to  Symfony )

ICTCO 2013 - 2014 14

Page 15: Mobile App  Club (An introduction to  Symfony )

Execute… php app/console doctrine:mapping:convert

annotation ./src php app/console doctrine:generate:entities

MyLibraryMainBundle

NOW WE ARE READY TO DEVELOP…

ICTCO 2013 - 2014 15

Page 16: Mobile App  Club (An introduction to  Symfony )

ICTCO 2013 - 2014 16

Page 17: Mobile App  Club (An introduction to  Symfony )

ICTCO 2013 17

Thank You!!!