Application Developer Blog

Informações e Inovações - Novidades, curiosidades do mundo (digital), Cinema, Filmes, Livros , Mobile, etc...

Tecnologia -> UBUNTU-> Desenvolvimento -> PHP -> ZendFrameWork -> How to configure Zend Framework with Zend Server to create modern PHP applications


How to configure Zend Framework with Zend Server to create modern PHP applications

This guide will guide you through configuring the Zend Framework which is a very popular and powerful MVC framework for PHP, the idea is to configure it using the libraries provided on the Zend Server package installer.

Once you have downloaded and installed all the necessary packages this is the folder structure where u can find the files for the Zend Framework, for this guide I'm using Zend Server version 5 which is at the moment the latest release and it comes also with the latest version of the Zend Framework v 1.10:

    /usr/local/zend/share/ZendFramework (root folder for the Zend Framework)

    /usr/local/zend/share/ZendFramework/bin (shell scripts folder, these scripts will help you handle                            your project config, I'll explain later)

    /usr/local/zend/share/ZendFramework/library/Zend (Framework library files)

Ok, now that we have all the tools, let's create our first PHP application using the Zend Framework, as I mentioned above, Zend Framework comes together with a shell script that will help creating or modifying element on our MVC project structure, in order to use this script we'll have to create first a link to it just for easy handling globally through the command line, on Linux you create a link by typing:
  
    $ sudo ln -s /usr/local/zend/share/ZendFramework/bin/zf.sh /usr/local/bin/zf

Let's now create a new PHP project in our home folder, we do so by typing:

    $ zf create project /home/username/my_first_project

the command will create the whole project structure including some initial config files that you can alter later while developing your project. Once the command is done the folder structure you'll see will look similar to:

my_first_project
    |-- application
    |   |-- Bootstrap.php
    |   |-- configs
    |   |   `-- application.ini
    |   |-- controllers
    |   |   |-- ErrorController.php
    |   |   `-- IndexController.php
    |   |-- models
    |   `-- views
    |       |-- helpers
    |       `-- scripts
    |           |-- error
    |           |   `-- error.phtml
    |           `-- index
    |               `-- index.phtml
    |-- library
    |-- public
    |   |-- .htaccess
    |   `-- index.php
    `-- tests
        |-- application
        |   `-- bootstrap.php
        |-- library
        |   `-- bootstrap.php
        `-- phpunit.xml


Now we need to link the Zend Framework's library files to our library project so we can make use of them, to do so we need to create a extra link that will point our library folder to our Zend Framework's current installation, type this in your terminal:

    $ ln -s /home/username/my_first_project/library path/to/ZendFramework/library/Zend

and voila! You are all set up to start coding your application with all the advantages that Zend Framework brings.

You can find more info about what the zf.sh script does by typing:
  
    $ zf --help
Enviar por e-mailPostar no blog!Compartilhar no XCompartilhar no FacebookCompartilhar com o Pinterest
Marcadores: UBUNTU, Zend, Zend Framework, ZendFramework
Postagem mais recente Postagem mais antiga Página inicial

Vinde a mim...

"...tomai o vosso pai e as vossas familias e vinde a mim; e eu vos darei o melhor da terra do Egito, e comereis da fartura da terra."
"A mente que se Abre a uma nova idéia, jamais voltará ao seu tamanho original." Albert Einsten

Total de visualizações

Busca Rápida

000001 (1) 000004 (1) 000005 (1) 000006 (1) 10.04 (1) 11.04 (3) 11.10 (5) 3D (1) Acesso Remoto (1) ADMINISTRAÇÃO (1) Adobe (6) AGENDA (1) AJAX (14) Alimentação (1) Aline Barros (1) Android (1) Annotation (1) APACHE2 (7) Apostila (1) Arca Universal (3) Assalto (1) Atualização (1) Axis (2) Axis2 (2) BarCode (2) Barras (2) Bebes (6) Bíblia (1) Bispo Macedo (4) Bispo Macedo Blog do Bispo Macedo (1) Bispo Romualdo (3) Blog do Bispo Macedo (2) BLOQUEAR (1) BLOQUEIO (1) BOLETO (2) BOX FREE (2) BOX.NET (2) br office (2) brincadeiras (1) broffice (2) Bruna (1) CAKE PHP (1) Camila (2) Caminho de Milagres (1) Cantos Arredondados (1) Centro (1) Ciência (3) Cinema (3) Cinema Lançamento (3) Code Generator (2) Codigo de Barras (2) Conexão (2) Converter (1) Corpo (5) Creatina (2) CS4 (1) CS5 (9) Cydia (4) Debug (1) Debugger (1) Desbloqueio (1) Desenvolvimento (1) Doenças (3) DOMPDF (2) Downgrade (2) Download (2) Downloads (1) DreamWeaver (1) DreamWeaver CS4 (1) DVD (1) eBook (1) Eclipse (13) Eclipse Helios (7) Efeitos (4) Email (3) Espelho de HD (1) Espírito Santo (1) estádio (1) Eventos (1) ExtJs (4) Facebook (2) Filme (3) Flash Ipad (2) Foto (1) Fotos Obra (1) Framework (6) Frases (1) Frash (1) Frash IPad (1) Fundo (1) futebol (2) Gafes (1) Gerador de Codigo (2) Gestação (5) GIMP (1) Gmail (3) Gnash (1) Gnome (1) Google (1) Gravidez (7) Grid (1) Hackulous (1) Harry Potter (1) Hibernate (3) Hibernate Tools (1) Homem Aranha (1) HP (1) HP PhotSmart C4780 (1) IBM (2) Imagens (2) Imagens Diversas (1) Impressão (1) Impressora iPad (1) Impressora Ubuntu (2) Incêndio (1) INFORMACAO (4) INFORMAÇÃO (5) INFORMATIVO (5) instalar (1) Installation Manage (1) Installous (4) iOS 4.3.3 (2) iPad (5) IPad 2 (2) IPad2 (1) iPhone (18) iPhone 3GS (8) iPhone 4 (5) iPhone 5 (1) iPhone4 (1) IPSW (1) Israel (1) Jailbreak (9) JasperReports (1) JAVA (11) Java EE (1) JBOSS (1) JBOSS Tools (1) Jô Soares (1) Joomla (1) JPA (7) JSON (7) Kernel (2) Lamp (1) lego (1) Legumes (2) Leopard (3) LibreOffice (3) Linux (7) Livros (2) Lucas (1) Lugares (1) MAC OS X (1) Mac OSx (4) Maiusculo (1) MAPEAMENTO (2) Maven (2) MegaHost (1) Melhores do Mundo (1) Mengão (1) Mensagem (1) Mensagens (4) Minusculo (1) Mirante Campestre (1) Mobile (1) Modem 3G (1) My Unity (1) MySL (3) MYSQL (2) NAVEGAÇÃO (1) NGASI (1) Nícolas (4) Noticias (1) OpenOffice (1) Orkut (1) Os dois Leões (1) OSx (5) Paola (2) Parto (1) password (1) PC (3) Pdf (2) Pensamentos (1) PhotoShop (10) PHP (25) PHP5 (10) PHPMYADMIN (4) piadas (9) PLANEJAMENTO (1) Player (1) PlayOnLinux (1) Plug-in (3) poster (2) Programação (1) PS3 (1) RAD 7 (1) Realtions Relacionamentos (1) Receitas (2) REDE (2) Redsn0w (1) Reference Documentation (1) Reflexões (3) Rio de Janeiro (1) Root (1) Samung (1) Saúde (5) Security (1) SEGURANCA (5) SEGURANÇA (5) senha (2) Servidores (1) Sexo (1) SITE (1) SmartPhone (1) Sn0wbreeze (1) Softwares (1) Spring (15) Spring IDE (1) Spring Tools (1) SQL (1) Struts 2 (9) SubVersion (3) SVN (3) SWF (1) Synaptic (1) TAG Library (2) TAMANHO DO PAPEL (1) Tecnologia (6) Televisão (1) Tema (1) Temas (1) TEMPO (1) Terra Santa (1) Texto (5) Theme (1) TinyUmbrella (1) TiVizen (1) Tomcat (6) Tomcat 7 (1) Transparente (1) Turismo (1) Tutorial (1) TV Digital (1) UBUNTU (49) UBUNTU 10.04 (1) UBUNTU 10.10 (1) Ubuntu 11.04 (9) Ubuntu 11.10 (8) Unity (1) Upload (2) Videos (1) Virtual Host (1) VIVO (1) VPN (2) WAS 6 (1) WAS 7 (1) WAS 8 (2) Web Service (1) WebServer (3) Websphere (1) Windows (4) Wireless (3) XAMPP (2) Xdebug (5) Yii (6) Zend (4) Zend Debugger (1) Zend Framework (26) ZendFramework (3) ZendServer (2) ZendServer CE (1)
Application Developer 2011. Tema Janela de imagem. Tecnologia do Blogger.