Inovaoemempresascriativas 090713103549 Phpapp02 100125113545 Phpapp02
zf2menormelhormaispoderoso-121011160023-phpapp02
-
Upload
samir-souza -
Category
Documents
-
view
216 -
download
0
Transcript of zf2menormelhormaispoderoso-121011160023-phpapp02
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
1/46
Menor, Melhor eMais Poderoso!
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - " ! #
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
2/46
Er Galvão Abbott $ %residente da A&'A%(% ) Associa*ão
&rasileira de %ro+issionais %(% e ,iretor da %(% Con+erence &rasilo principal evento de %(% da A$rica Latina.
/rabalha h ais de "1 anos desenvolvendo sisteas e
aplica*2es co inter+ace eb sendo "" destes co %(% e
co 4end 5raeork. /rabalhou co diversas epresas de
6rande porte tanto nacionais coo internacionais.
%alestra e eventos d cursos e diversas institui*2es e
$ o +undador e l7der do GU %(%&' Grupo de Usurios
de abran68ncia nacional 9ue ho:e conta co ais de ".;00
usurios cadastrados.
Site< http
/itter< =6alvao
Slides e ,ocuentos< http
https
Github< http
Quem?!
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ; ! #
http://www.abraphp.org/http://www.phpconference.com.br/https://groups.google.com/d/forum/lista-phpbrhttp://www.galvao.eti.br/http://twitter.com/galvaohttp://slideshare.net/ergalvaohttps://speakerdeck.com/galvaohttp://github.com/galvaohttp://github.com/galvaohttps://speakerdeck.com/galvaohttp://slideshare.net/ergalvaohttp://twitter.com/galvaohttp://www.galvao.eti.br/https://groups.google.com/d/forum/lista-phpbrhttp://www.phpconference.com.br/http://www.abraphp.org/
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
3/46
Objetivo
Esta palestra te por ob:etivo apresentar o 4end 5raeork ; a nova versão de u
dos +raeorks ais utili>ados co a lin6ua6e %(% 9ue +oi lan*ada recenteente.Al$ disso serão deonstrados os conceitos bsicos envolvidos no desenvolviento
de ua aplica*ão co 45;.
Serão apresentados os se6uintes t?picos<
@ anta6ens e desvanta6ens de se utili>ar u 5raeork@ %rincipais +raeorks e %(%
@ %or9ue escolher o 45;B
@ Setup inicial
@ Abientes
@ odels Controllers e ies
@ C'U,@ Custoi>a*ão de 'otas
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3 ! #
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
4/46
Framework – Vantagens e desvantagens
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ! #
↑5oco na aplica*ão↑%adroni>a*ão↑Dr6ani>a*ão
↑Sipli+ica*ão de probleas copleos
Curva inicial de aprendi>ado alta
FEn6essaento da aplica*ão
,epend8ncia do 5raeork
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
5/46
Ds H 5raeorks %(% ais populares e ;0"" ) 5onte< %(%-,eveloper.or6
Frame"#ks
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - I ! #
http://www.php-developer.org/most-used-php-framework-the-popular-top-7-list-in-year-2011/http://www.php-developer.org/most-used-php-framework-the-popular-top-7-list-in-year-2011/
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
6/46
Frame"#ks
Avalia*ão de Finteresse nJero de 9ueries no Goo6le. 5onte ) Goo6le /rendsDrde dos teros< 45 CK Sy+ony ii e Cake%(%
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - # ! #
http://www.google.com/trends/explore#q=zend+framework,codeigniter,symfony,yii,cakephphttp://www.google.com/trends/explore#q=zend+framework,codeigniter,symfony,yii,cakephp
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
7/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - H ! #
↑5oco na aplica*ão↑%adroni>a*ão↑Dr6ani>a*ão
↑Sipli+ica*ão de probleas copleos
Curva inicial de aprendi>ado alta
FEn6essaento da aplica*ão
,epend8ncia do 5raeork
Por $u% &F'?
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
8/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 1 ! #
↑5oco na aplica*ão↑%adroni>a*ão↑Dr6ani>a*ão
↑Sipli+ica*ão de probleas copleos
Curva inicial de aprendi>ado alta
FEn6essaento da aplica*ão
,epend8ncia do 5raeork
Por $u% &F'?
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
9/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - M ! #
↑5oco na aplica*ão↑%adroni>a*ão↑Dr6ani>a*ão
↑Sipli+ica*ão de probleas copleos
Curva inicial de aprendi>ado alta
FEn6essaento da aplica*ão
,epend8ncia do 5raeork
Por $u% &F'?
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
10/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "0 ! #
↑5oco na aplica*ão↑%adroni>a*ão↑Dr6ani>a*ão
↑Sipli+ica*ão de probleas copleos
Curva inicial de aprendi>ado alta
FEn6essaento da aplica*ão
,epend8ncia do 5raeork
Por $u% &F'?
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
11/46
Por $u% &F'?
Dpen Source %(% NO I.3
N ; anos e eio naespaces
N ;.000 chan6esets closures
N ;00 pro+issionais late static bindin6
icroso+t Goo6le et al.
Coposer Github
%(A' %(%Unit
"00P DD /ravisCK
S.D.L.K.,.
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "" ! #
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
12/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "; ! #
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
13/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "3 ! #
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
14/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - " ! #
Con+i6ura*ão a n7vel de aplica*ão
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
15/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "I ! #
Con+i6ura*ão a n7vel de aplica*ão
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
16/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "# ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
17/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "H ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
18/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "1 ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
19/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - "M ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
20/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;0 ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
odels
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
21/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;" ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
odels
ies
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
22/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;; ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
odels
ies
Layout
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
23/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;3 ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
odels
ies
Layout
'ai> eb
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
24/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ; ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
odels
ies
Layout
'ai> eb
Coponentes eternos
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
25/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;I ! #
Con+i6ura*ão a n7vel de aplica*ão
?dulos da aplica*ão
Con+i6ura*ão a n7vel de ?dulo
C?di6o-+onte do ?dulo
Controllers
odels
ies
Layout
'ai> eb
Coponentes eternos
4end 5raeork ;
Con+i6ura*ão de Fabientes
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
26/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;# ! #
(etu) ini*ial
45;/estApp!public!.htaccess
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
27/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;H ! #
(etu) ini*ial
45;/estApp!public!inde.php
( i i i l
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
28/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;1 ! #
(etu) ini*ial
45;/estApp!initQautoloader.php
( t i i i l
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
29/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ;M ! #
(etu) ini*ial
45;/estApp!con+i6!application.con+i6.php
( t i i i l
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
30/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 30 ! #
(etu) ini*ial
45;/estApp!odule!Application!odule.php
(etu) ini*ial
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
31/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3" ! #
45;/estApp!odule!Application!con+i6!odule.con+i6.php
(etu) ini*ial
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
32/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3; ! #
45;/estApp!con+i6!autoload!6lobal.php
(etu) ini*ial
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
33/46
(etu) ini*ial
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 33 ! #
45;/estApp!con+i6!autoload!local.php
Models
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
34/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3 ! #
Models
45;/estApp!odule!Application!src!Application!odel!%roduto.php
Models
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
35/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3I ! #
Models
45;/estApp!odule!Application!src!Application!odel!%roduto/able.php
Models – +#-
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
36/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3# ! #
Models – +#-
45;/estApp!odule!Application!src!Application!odel!%roduto/able.php
Models – +#-
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
37/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3H ! #
45;/estApp!odule!Application!src!Application!odel!%roduto/able.php
Models +#-
Models – +#-
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
38/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 31 ! #
45;/estApp!odule!Application!src!Application!odel!%roduto/able.php
Models +#-
+ontrollers . +#-
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
39/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3M ! #
45;/estApp!odule!Application!src!Application!Controller!%rodutoController.php
+ontrollers +#-
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
40/46
+ontrollers . +#-
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
41/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - " ! #
45;/estApp!odule!Application!src!Application!Controller!%rodutoController.php
Views
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
42/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ; ! #
45;/estApp!odule!Application!vie!application!produto!inde.phtl
+#- – (etu) adi*ional
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
43/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - 3 ! #
45;/estApp!odule!Application!con+i6!odule.con+i6.php
+#- – (etu) adi*ional
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
44/46
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - ! #
45;/estApp!odule!Application!odule.php
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
45/46
Obrigado!
-
8/17/2019 zf2menormelhormaispoderoso-121011160023-phpapp02
46/46
? ,JvidasB Cr7ticasB
↑ Elo6iosB
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - !"#!"3 - # ! #