Introduction to Zend Framework
-
Upload
michelangelo-van-dam -
Category
Technology
-
view
17.825 -
download
3
Transcript of Introduction to Zend Framework
Zend Framework Introduction
by Michelangelo van Dam
Who is Michelangelo van Dam ?
Freelance PHP consultant with over 7 years of enterprise level PHP development experience.
Started using Zend Framework in 2007 and contributes to this framework for Zend_Ldap.
web: http://www.in2it.be
blog: http://dragonbe.blogspot.com
e-mail: dragonbe [at] google mail
twitter: http://twitter.com/DragonBe
What is Zend Framework ?
a component based framework
use the whole framework
pick what you need, drop the rest
implementing the MVC-paradigm
simplicity and object oriented best practices
corporate friendly license (new BSD license)
a very tested agile code base
modify code by extending components
Zend Framework map
Tools to build ZF applications
IDE's
Zend Studio 6.0 (neon) (www.zend.com)
fully supported by Zend
integration of Zend Framework in IDE
Komodo IDE (www.activestate.com)
Text editors
vi(m)
textpad
notepad
A bit of theory... MVC
model
the model holds the business logic
view
creates the presentation layer
controller
defines actions to be executed
MVC in action
Setting up the virtualhost (Apache)
ServerName www.example.com ServerAlias example.com DocumentRoot /path/to/example.com/htdocs Options Indexes FollowSymlinks AllowOverride All Order allow,deny Allow from all DirectoryIndex index.php SetEnv ENVPHP localhost ErrorLog /path/to/logs/example.com-error_log CustomLog /path/to/logs/example.com-access_log common
Directory structure
app/ default/
New Zend Framework Project
Hello, world!
controller IndexController.php
';?>
modifying index/index.phtml
Hello, world!
modifying IndexController.php