SlideShare a Scribd company logo
1 of 78
Download to read offline
ZendFramework   #2           2010 3
                                 Room7H




                     Twig
                   +
            Zend Framework
#phpstudy_91




                     @wozozo




ZendFramework   #2                            2
#phpstudy_91




                      DF
                     PHP


ZendFramework   #2                        3
#phpstudy_91




                      #phpstudy
                     #phpstudy_91


ZendFramework   #2                                 4
#phpstudy_91




ZendFramework   #2                  5
#phpstudy_91




                                                  188cm
                                  var_export
                     PHPer
                             http://blog.nully.org/

ZendFramework   #2                                                       6
#phpstudy_91




                Zend Framework
        ✴ Ver 1.6.3

        ✴                        ...

        ✴




ZendFramework   #2                                    7
#phpstudy_91




                Zend Framework
        ✴ ZF             cakePHP



        ✴ Interface Abstract

        ✴ ZF           ZF



ZendFramework   #2                                8
#phpstudy_91




                         �
                     �




ZendFramework   #2                          9
#phpstudy_91




ZendFramework   #2                  10
#phpstudy_91




ZendFramework   #2                  11
#phpstudy_91




          JARO       Twitter




ZendFramework   #2                            12
#phpstudy_91




       ✓ Twgi
       ✓ Twig
       ✓ Twig        Zend Framework

       ✓




ZendFramework   #2                                   13
#phpstudy_91




ZendFramework   #2                  14
#phpstudy_91




                     <(_ _)>


ZendFramework   #2                            15
#phpstudy_91




            Zend Framework



ZendFramework   #2                          16
#phpstudy_91




                Twig



ZendFramework    #2                   17
#phpstudy_91




                     Twig



ZendFramework   #2                         18
#phpstudy_91




   Twig




ZendFramework   #2                  19
Twig                                     #phpstudy_91




                               Twig
                Smarty Flexy


                               Symfony


ZendFramework    #2                                     20
#phpstudy_91




                             10/02/22




                     0.9.6 DEV          0.9.5




ZendFramework   #2                                             21
#phpstudy_91




                     Archive      zip

                     Git   Github

                      Subversion

                           PEAR


ZendFramework   #2                                     22
#phpstudy_91




                               new BSD


                 BSD UNIX                        4.3 BSD Net/2
                BSD        UNIX   FreeBSD   NetBSD




                           ※                         README.markdown




ZendFramework         #2                                                              23
#phpstudy_91




ZendFramework   #2                  24
Twig                                #phpstudy_91




                             Twig
                ✓ PHP5.2.4
                ✓
                ✓
                ✓             PHP

ZendFramework   #2                                 25
Twig                                #phpstudy_91




                             Twig
                ✓ PHP5.2.4
                ✓
                ✓
                ✓             PHP

ZendFramework   #2                                 26
Twig                           #phpstudy_91




                ✓

                       {% %}


                Twig   {{ }}




ZendFramework   #2                            27
Twig                         #phpstudy_91




                ✓




            {% %}    {{ }}



ZendFramework   #2                          28
Twig                                #phpstudy_91




                             Twig
                ✓ PHP5.2.4
                ✓
                ✓
                ✓             PHP

ZendFramework   #2                                 29
Twig                                #phpstudy_91




                             Twig
                ✓ PHP5.2.4
                ✓
                ✓
                ✓             PHP

ZendFramework   #2                                 30
Twig                                                        #phpstudy_91




                ✓




            •
                                  YYYY/mm/dd



                     {{ time|date }}   →       2010/03/06


ZendFramework   #2                                                         31
Twig                                                #phpstudy_91




                ✓




                     •

                         {% if name == ‘nully’ %}

                               {% endif %}




ZendFramework   #2                                                 32
Twig                   #phpstudy_91




                Twig




ZendFramework   #2                    33
#phpstudy_91




   Twig




ZendFramework   #2                  34
Twig                          #phpstudy_91




           Twig      Loader




ZendFramework   #2                           35
Twig                                          #phpstudy_91




                     Twig     Loader
                       Twig_Loader_String

                     Twig_Loader_Filesystem

                       Twig_Loader_Array


ZendFramework   #2                                           36
Twig                                 #phpstudy_91




                Twig_Loader_String




ZendFramework   #2                                  37
Twig                          #phpstudy_91




         Twig_Loader_Filesystem

                     HTML




ZendFramework   #2                           38
Twig                                #phpstudy_91




                Twig_Loader_Array




ZendFramework   #2                                 39
Twig                                          #phpstudy_91




                ZF

                     Twig_Loader_Filesystem




ZendFramework   #2                                           40
Twig                              #phpstudy_91




                BASIC API USAGE




ZendFramework   #2                               41
#phpstudy_91




BASIC API USAGE




                                 42
Twig                     #phpstudy_91




       BASIC API USAGE




        spl_autoloader

                                        43
#phpstudy_91




Loader


                        44
#phpstudy_91




Twig


                      45
#phpstudy_91




               46
#phpstudy_91




               47
#phpstudy_91




HTML




                      48
Twig                 #phpstudy_91




ZendFramework   #2                  49
#phpstudy_91




   Zend Framework




ZendFramework   #2                  50
Zend Framework             #phpstudy_91




            ✓ View
            ✓ Extension
            ✓ ViewHelper




ZendFramework    #2                       51
Zend Framework        #phpstudy_91




ZendFramework    #2                  52
Zend Framework                             #phpstudy_91




                      View

                      Zend_View_Abstract




ZendFramework    #2                                       53
Zend Framework                          #phpstudy_91




                      Nully_View_Twig




ZendFramework    #2                                    54
Zend Framework                          #phpstudy_91




                      Nully_View_Twig




ZendFramework    #2                                    55
Zend Framework                          #phpstudy_91




                      Nully_View_Twig




ZendFramework    #2                                    56
Zend Framework                                #phpstudy_91




                      Extension

                 Twig_Extension   Extension




ZendFramework    #2                                          57
Zend Framework                          #phpstudy_91




                 Nully_View_Extension




ZendFramework     #2                                   58
Zend Framework                     #phpstudy_91




                      getFilters




ZendFramework    #2                               59
Zend Framework                                  #phpstudy_91




                       Bootstrap
            ✴ Nully_View_Twig Extension

            ✴ ViewRenderer    Nully_View_Twig

            ✴ View    suffix




ZendFramework    #2                                            60
Zend Framework                    #phpstudy_91




                      Bootstrap




ZendFramework    #2                              61
#phpstudy_91




ZendFramework   #2                  62
#phpstudy_91




ZendFramework   #2                  63
#phpstudy_91




      ViewHelper     Twig_Token




ZendFramework   #2                               64
Twig                                                #phpstudy_91




                ✓




                     •

                         {% if name == ‘nully’ %}

                               {% endif %}




ZendFramework   #2                                                 65
#phpstudy_91




      ViewHelper     Twig_Token




ZendFramework   #2                               66
#phpstudy_91




                 Token
      ✓ Token
      ✓ Twig_TokenParser
      ✓ Twig_Node




ZendFramework   #2                        67
#phpstudy_91




                     Token

       {% helper             [   [   [ ...]]] %}


           zfh viewhelper            OK



ZendFramework   #2                                          68
#phpstudy_91




       Nully_View_TokenParser

            •   getTag()   Token

            •   parse()
                Token




ZendFramework   #2                                69
#phpstudy_91




            parse
                Twig_Parser




                      Helper

       Twig_Node


ZendFramework    #2                           70
#phpstudy_91




                Nully_View_Node

        •   __construct Helper

        •   compile()




ZendFramework   #2                               71
#phpstudy_91




        compile
                Helper


                 Twig_Compiler::write()
                 ViewHelper


           Zend_Controller_Action_HelperBroker
           ::getStaticHelper(“viewRenderer”)
ZendFramework   #2                                          72
#phpstudy_91




       Token

              Nully_Twig_Extension
           getTokenParsers()



ZendFramework   #2                                  73
#phpstudy_91




                 getTokenParsers()




ZendFramework   #2                                  74
#phpstudy_91




                   Token Parser
                Github



          http://github.com/Nully/zf_twig


ZendFramework     #2                                   75
#phpstudy_91




      •   Twig      Smarty


      •   Zend Framework          Twig_Loader_Filesystem        View


      •   Filter              Token                   ViewHelper


      •   ViewHelper                                   Twig_TokenParser
          Twig_Node

      •                 Twig_TokenParser Twig_Node

ZendFramework      #2                                                              76
#phpstudy_91




       •             PHP




ZendFramework   #2                        77
#phpstudy_91




        •   Twitter        @Nully

        •   mixi      3800656                        Nully

        •   google buzz http://www.google.com/profiles/nully.nl


        CC BY 2.0
        ✴ http://www.flickr.com/photos/jakecaptive/
        ✴ http://www.flickr.com/photos/themacguy2k/
        ✴ http://www.flickr.com/photos/aplumb/




ZendFramework    #2                                                         78

More Related Content

Similar to 初めてのTwig+ZendFramework

ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)
ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)
ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)ZFConf Conference
 
MVC with Zend Framework
MVC with Zend FrameworkMVC with Zend Framework
MVC with Zend Frameworkwebholics
 
Zend Framework 1.8 workshop
Zend Framework 1.8 workshopZend Framework 1.8 workshop
Zend Framework 1.8 workshopNick Belhomme
 
Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...
Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...
Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...Zend by Rogue Wave Software
 
Aop, Metaprogramming and codegeneration with PHP
Aop, Metaprogramming and codegeneration with PHPAop, Metaprogramming and codegeneration with PHP
Aop, Metaprogramming and codegeneration with PHPSerge Smertin
 
Practical intro to PhpSpec
Practical intro to PhpSpecPractical intro to PhpSpec
Practical intro to PhpSpecDave Hulbert
 
Last 2 Months in PHP - January 2018
Last 2 Months in PHP - January 2018Last 2 Months in PHP - January 2018
Last 2 Months in PHP - January 2018Eric Poe
 
Debugging PHP with xDebug inside of Eclipse PDT 2.1
Debugging PHP with xDebug inside of Eclipse PDT 2.1Debugging PHP with xDebug inside of Eclipse PDT 2.1
Debugging PHP with xDebug inside of Eclipse PDT 2.1Bastian Feder
 
Zend Framework Form: Mastering Decorators
Zend Framework Form: Mastering DecoratorsZend Framework Form: Mastering Decorators
Zend Framework Form: Mastering DecoratorsNick Belhomme
 
Standard Coding, OOP Techniques and Code Reuse
Standard Coding, OOP Techniques and Code ReuseStandard Coding, OOP Techniques and Code Reuse
Standard Coding, OOP Techniques and Code ReuseRayhan Chowdhury
 
Standards: Don't pee in the pool
Standards: Don't pee in the poolStandards: Don't pee in the pool
Standards: Don't pee in the poolDavid Yell
 
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutesZero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutesJeremy Kendall
 
Fundamentals of Extending Magento 2 - php[world] 2015
Fundamentals of Extending Magento 2 - php[world] 2015Fundamentals of Extending Magento 2 - php[world] 2015
Fundamentals of Extending Magento 2 - php[world] 2015David Alger
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_companyGanesh Kulkarni
 
Modern Gentlemen's WordPress
Modern Gentlemen's WordPressModern Gentlemen's WordPress
Modern Gentlemen's WordPressEnrico Deleo
 
DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)dpc
 

Similar to 初めてのTwig+ZendFramework (20)

ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)
ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)
ZFConf 2012: Zend Framework 2, a quick start (Enrico Zimuel)
 
MVC with Zend Framework
MVC with Zend FrameworkMVC with Zend Framework
MVC with Zend Framework
 
Zend Framework 1.8 workshop
Zend Framework 1.8 workshopZend Framework 1.8 workshop
Zend Framework 1.8 workshop
 
Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...
Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...
Costruire un sito e-commerce in alta affidabilità con Magento e Zend Server C...
 
Aop, Metaprogramming and codegeneration with PHP
Aop, Metaprogramming and codegeneration with PHPAop, Metaprogramming and codegeneration with PHP
Aop, Metaprogramming and codegeneration with PHP
 
Practical intro to PhpSpec
Practical intro to PhpSpecPractical intro to PhpSpec
Practical intro to PhpSpec
 
Last 2 Months in PHP - January 2018
Last 2 Months in PHP - January 2018Last 2 Months in PHP - January 2018
Last 2 Months in PHP - January 2018
 
green
greengreen
green
 
Debugging PHP with xDebug inside of Eclipse PDT 2.1
Debugging PHP with xDebug inside of Eclipse PDT 2.1Debugging PHP with xDebug inside of Eclipse PDT 2.1
Debugging PHP with xDebug inside of Eclipse PDT 2.1
 
Zend Framework Form: Mastering Decorators
Zend Framework Form: Mastering DecoratorsZend Framework Form: Mastering Decorators
Zend Framework Form: Mastering Decorators
 
Becoming A Php Ninja
Becoming A Php NinjaBecoming A Php Ninja
Becoming A Php Ninja
 
Standard Coding, OOP Techniques and Code Reuse
Standard Coding, OOP Techniques and Code ReuseStandard Coding, OOP Techniques and Code Reuse
Standard Coding, OOP Techniques and Code Reuse
 
Standards: Don't pee in the pool
Standards: Don't pee in the poolStandards: Don't pee in the pool
Standards: Don't pee in the pool
 
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutesZero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
 
Fundamentals of Extending Magento 2 - php[world] 2015
Fundamentals of Extending Magento 2 - php[world] 2015Fundamentals of Extending Magento 2 - php[world] 2015
Fundamentals of Extending Magento 2 - php[world] 2015
 
Zend framework 01 - introduction
Zend framework 01 - introductionZend framework 01 - introduction
Zend framework 01 - introduction
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_company
 
Modern Gentlemen's WordPress
Modern Gentlemen's WordPressModern Gentlemen's WordPress
Modern Gentlemen's WordPress
 
ZF2 Presentation @PHP Tour 2011 in Lille
ZF2 Presentation @PHP Tour 2011 in LilleZF2 Presentation @PHP Tour 2011 in Lille
ZF2 Presentation @PHP Tour 2011 in Lille
 
DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)
 

Recently uploaded

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

初めてのTwig+ZendFramework

  • 1. ZendFramework #2 2010 3 Room7H Twig + Zend Framework
  • 2. #phpstudy_91 @wozozo ZendFramework #2 2
  • 3. #phpstudy_91 DF PHP ZendFramework #2 3
  • 4. #phpstudy_91 #phpstudy #phpstudy_91 ZendFramework #2 4
  • 6. #phpstudy_91 188cm var_export PHPer http://blog.nully.org/ ZendFramework #2 6
  • 7. #phpstudy_91 Zend Framework ✴ Ver 1.6.3 ✴ ... ✴ ZendFramework #2 7
  • 8. #phpstudy_91 Zend Framework ✴ ZF cakePHP ✴ Interface Abstract ✴ ZF ZF ZendFramework #2 8
  • 9. #phpstudy_91 � � ZendFramework #2 9
  • 12. #phpstudy_91 JARO Twitter ZendFramework #2 12
  • 13. #phpstudy_91 ✓ Twgi ✓ Twig ✓ Twig Zend Framework ✓ ZendFramework #2 13
  • 15. #phpstudy_91 <(_ _)> ZendFramework #2 15
  • 16. #phpstudy_91 Zend Framework ZendFramework #2 16
  • 17. #phpstudy_91 Twig ZendFramework #2 17
  • 18. #phpstudy_91 Twig ZendFramework #2 18
  • 19. #phpstudy_91 Twig ZendFramework #2 19
  • 20. Twig #phpstudy_91 Twig Smarty Flexy Symfony ZendFramework #2 20
  • 21. #phpstudy_91 10/02/22 0.9.6 DEV 0.9.5 ZendFramework #2 21
  • 22. #phpstudy_91 Archive zip Git Github Subversion PEAR ZendFramework #2 22
  • 23. #phpstudy_91 new BSD BSD UNIX 4.3 BSD Net/2 BSD UNIX FreeBSD NetBSD ※ README.markdown ZendFramework #2 23
  • 25. Twig #phpstudy_91 Twig ✓ PHP5.2.4 ✓ ✓ ✓ PHP ZendFramework #2 25
  • 26. Twig #phpstudy_91 Twig ✓ PHP5.2.4 ✓ ✓ ✓ PHP ZendFramework #2 26
  • 27. Twig #phpstudy_91 ✓ {% %} Twig {{ }} ZendFramework #2 27
  • 28. Twig #phpstudy_91 ✓ {% %} {{ }} ZendFramework #2 28
  • 29. Twig #phpstudy_91 Twig ✓ PHP5.2.4 ✓ ✓ ✓ PHP ZendFramework #2 29
  • 30. Twig #phpstudy_91 Twig ✓ PHP5.2.4 ✓ ✓ ✓ PHP ZendFramework #2 30
  • 31. Twig #phpstudy_91 ✓ • YYYY/mm/dd {{ time|date }} → 2010/03/06 ZendFramework #2 31
  • 32. Twig #phpstudy_91 ✓ • {% if name == ‘nully’ %} {% endif %} ZendFramework #2 32
  • 33. Twig #phpstudy_91 Twig ZendFramework #2 33
  • 34. #phpstudy_91 Twig ZendFramework #2 34
  • 35. Twig #phpstudy_91 Twig Loader ZendFramework #2 35
  • 36. Twig #phpstudy_91 Twig Loader Twig_Loader_String Twig_Loader_Filesystem Twig_Loader_Array ZendFramework #2 36
  • 37. Twig #phpstudy_91 Twig_Loader_String ZendFramework #2 37
  • 38. Twig #phpstudy_91 Twig_Loader_Filesystem HTML ZendFramework #2 38
  • 39. Twig #phpstudy_91 Twig_Loader_Array ZendFramework #2 39
  • 40. Twig #phpstudy_91 ZF Twig_Loader_Filesystem ZendFramework #2 40
  • 41. Twig #phpstudy_91 BASIC API USAGE ZendFramework #2 41
  • 43. Twig #phpstudy_91 BASIC API USAGE spl_autoloader 43
  • 49. Twig #phpstudy_91 ZendFramework #2 49
  • 50. #phpstudy_91 Zend Framework ZendFramework #2 50
  • 51. Zend Framework #phpstudy_91 ✓ View ✓ Extension ✓ ViewHelper ZendFramework #2 51
  • 52. Zend Framework #phpstudy_91 ZendFramework #2 52
  • 53. Zend Framework #phpstudy_91 View Zend_View_Abstract ZendFramework #2 53
  • 54. Zend Framework #phpstudy_91 Nully_View_Twig ZendFramework #2 54
  • 55. Zend Framework #phpstudy_91 Nully_View_Twig ZendFramework #2 55
  • 56. Zend Framework #phpstudy_91 Nully_View_Twig ZendFramework #2 56
  • 57. Zend Framework #phpstudy_91 Extension Twig_Extension Extension ZendFramework #2 57
  • 58. Zend Framework #phpstudy_91 Nully_View_Extension ZendFramework #2 58
  • 59. Zend Framework #phpstudy_91 getFilters ZendFramework #2 59
  • 60. Zend Framework #phpstudy_91 Bootstrap ✴ Nully_View_Twig Extension ✴ ViewRenderer Nully_View_Twig ✴ View suffix ZendFramework #2 60
  • 61. Zend Framework #phpstudy_91 Bootstrap ZendFramework #2 61
  • 64. #phpstudy_91 ViewHelper Twig_Token ZendFramework #2 64
  • 65. Twig #phpstudy_91 ✓ • {% if name == ‘nully’ %} {% endif %} ZendFramework #2 65
  • 66. #phpstudy_91 ViewHelper Twig_Token ZendFramework #2 66
  • 67. #phpstudy_91 Token ✓ Token ✓ Twig_TokenParser ✓ Twig_Node ZendFramework #2 67
  • 68. #phpstudy_91 Token {% helper [ [ [ ...]]] %} zfh viewhelper OK ZendFramework #2 68
  • 69. #phpstudy_91 Nully_View_TokenParser • getTag() Token • parse() Token ZendFramework #2 69
  • 70. #phpstudy_91 parse Twig_Parser Helper Twig_Node ZendFramework #2 70
  • 71. #phpstudy_91 Nully_View_Node • __construct Helper • compile() ZendFramework #2 71
  • 72. #phpstudy_91 compile Helper Twig_Compiler::write() ViewHelper Zend_Controller_Action_HelperBroker ::getStaticHelper(“viewRenderer”) ZendFramework #2 72
  • 73. #phpstudy_91 Token Nully_Twig_Extension getTokenParsers() ZendFramework #2 73
  • 74. #phpstudy_91 getTokenParsers() ZendFramework #2 74
  • 75. #phpstudy_91 Token Parser Github http://github.com/Nully/zf_twig ZendFramework #2 75
  • 76. #phpstudy_91 • Twig Smarty • Zend Framework Twig_Loader_Filesystem View • Filter Token ViewHelper • ViewHelper Twig_TokenParser Twig_Node • Twig_TokenParser Twig_Node ZendFramework #2 76
  • 77. #phpstudy_91 • PHP ZendFramework #2 77
  • 78. #phpstudy_91 • Twitter @Nully • mixi 3800656 Nully • google buzz http://www.google.com/profiles/nully.nl CC BY 2.0 ✴ http://www.flickr.com/photos/jakecaptive/ ✴ http://www.flickr.com/photos/themacguy2k/ ✴ http://www.flickr.com/photos/aplumb/ ZendFramework #2 78