Loading...
Flash Player 9 (or above) is needed to view slideshows. We have detected that you do not have it on your computer.To install it, go here
- All Comments (0)
- Notes on Slide 1
- Why are we doing a proposal for Zend_Tool if its still only in the incubator?
- “Tooling” – essentially, the toolset or toolchain you use to aid during development time of your applications lifecycle.Endpoints – basically the UI for the framework, how do you interact, is it via the command line or shell, is it a web page, is it an IDE communicating over Xml-Rpc?Providers – Simple classes that “provide” tooling capablities, could be a simple a writing a file, it could be a class that iterates over file and changes a file extensions, it could be a provider that creates a database.Loaders – Subsystem responsible for finding the “Providers”Manifest & Metadata – a registry for attaching metadata, or bits of interesting information, to a Provider.Built In Providers – The ability to list all of the registered providers and system capabilities, the ability to see what version of ZF is installed
- Kinda small, but ill walk you through whats going onTOP LEFT: I executed the actual command “zf create action –controllername –name bar”MIDDLE: You can see what was created (originally a FooController, but in this step, a bar action)MIDDLE/BOTTOM: I edited the view script bar.phtmlRIGHT: I browsed to my newly created action controller with my custom view code
-
rashmi favorited this 2 months ago
Slideshow Transcript
- Slide 1: Zend_Tool: Rapid Application Development In Zend Framework Ralph Schindler Software Engineer, Zend Technologies Copyright © 2008, Zend Technologies Inc.
- Slide 2: Overview • This Presentation? Now? • The Proposals • Demo of Code / Prototype • Q & A Time • Whats Next?
- Slide 3: Current State of Affairs • This is where you come in: • Need worthwhile community feedback to validate proposals, ideas and use cases • Which in turn, will push along the component in the proposal process • And, we have a prototype is ready, you can use it TODAY
- Slide 4: The Proposals • The Tooling / Command Line Tooling problem broken down into 3 logical part: • Zend_Tool_Rpc http://framework.zend.com/wiki/display/ZFPROP/Zend_Tool_Rpc+-+R • Zend_Tool_Project http://framework.zend.com/wiki/display/ZFPROP/Zend_Tool_Project+ • Zend_Tool_CodeGenerator http://framework.zend.com/wiki/display/ZFPROP/Zend_Tool_CodeGe • Zend_Reflection http://framework.zend.com/wiki/display/ZFPROP/Zend_Reflection+-+
- Slide 5: The Proposals – Zend_Tool_Rpc • RPC Style “framework” for using and extending “tooling” capabilities • Further broken down into subparts: • Endpoints • Providers • Loaders • Manifest & Metadata • Built in / System providers
- Slide 6: The Proposals – Zend_Tool_Project • Zend_Tool_Project facilitates the ability to build and manage ZF based projects • Subparts: • Set of providers • Object Graph Management Contexts Graph and Nodes
- Slide 7: The Proposal - Zend_Tool_CodeGenerator • Responsible for parsing and generating “code” from logical blocks of “text” • First round of implementation: • PHP Files, Classes, Properties, Methods, Parameters Docblocks for each Body code / maybe later support primitives and basic control structures • Apache Conf files and .htaccess files Directory and File blocks, settings, etc.
- Slide 8: Demo of Code / Prototype • Demo Time! • A script of what I will be demo-ing is located here:
- Slide 9: Demo – Make sure the Environment Is Setup
- Slide 10: Demo – Lets do something useful now
- Slide 11: Demo – Make sure a Vhost is Setup
- Slide 12: Demo – So what did that do?
- Slide 13: Demo – What did all that do?
- Slide 14: Demo – What else can it do?
- Slide 15: Demo – What else can it do (part 2)?
- Slide 16: Demo – What else can it do (part 3)?
- Slide 17: Advanced Usage: OOP interface to Generation • Zend_Tool_CodeGenerator allows you to generate OO Php code to script the production of classes • Zend_Reflection allows you to reflect more granular aspects of OO classes • Docblocks, doc attributes (var, description, params, returns) • Reflect Files • Retrieve content body • Zend_Tool_CodeGenerator allows you to use Zend_Reflection to build OO graphs of code to be able to modify and save back to disk
- Slide 18: Advanced Usage: Hello World
- Slide 19: Advanced Usage: Hello World
- Slide 20: Advanced Usage: Hello World
- Slide 21: Advanced Usage: Hello World
- Slide 22: Advanced Concepts: Domain Models • Lets say we started with a Db Schema
- Slide 23: Advanced Concepts: Domain Models
- Slide 24: Advanced Concepts: Domain Models • And we wrote a few scripts that utilized reflection and code generation, other tooling goodies and other elements of the ZF… • http://svn.ralphschindler.com/RS_DomainModel/ • Perhaps we could generate some Domain Models that utilized Db Tables, as well as some getters and setters for their properties
- Slide 25: Advanced Concepts: Domain Models
- Slide 26: Advanced Concepts: Domain Models
- Slide 27: Advanced Concepts: Domain Models
- Slide 28: Q & A Time • Ask your question • Receive your answer • Wash, rinse, repeat
- Slide 29: Whats next? • Send feedback to the proposals • http://tech.groups.yahoo.com/group/zf-tool/ • Use the prototype and ask questions to me: • ralph.schindler@zend.com • Or in #zftalk / #zftalk.dev • Or on the mailing list • My next steps: • CodeGeneration refining • Help system shortcuts • Custom Profiles/CodeGenerators for Zend_Tool_Project
- Slide 30: Thanks! Ralph Schindler ralph.schindler@zend.com http://framework.zend.com/ Copyright © 2008, Zend Technologies Inc.

