How to setup First Application in Zend Framework 2

后端 未结 7 923
一向
一向 2020-12-30 02:57

i am creating my first application in zf2. i followed Zend Offical website zf2 Skeleton Application.i have downloaded the skeleton app from github as in in the given link.wh

7条回答
  •  一个人的身影
    2020-12-30 03:25

    How about making it easier @Rob Allen? When answering, so that other reader can save 24 hours to 1 minute !! I tried to make it easier from your answer as below:

    1) httpd.conf
    
     ServerName site
     ServerAlias site
     DocumentRoot /var/www/html/s/public
     
        #AddDefaultCharset utf-8
        DirectoryIndex index.php
        AllowOverride FileInfo
        Order allow,deny
        Allow from all
     
    
    
    2) i did git clone git repo
    $ ls
    composer.json  composer.lock  composer.phar  config  data  db_bck  init_autoloader.php  LICENSE.txt  module  nbproject  public  README.md  vendor
    
    3) I run and i get same error
    
    4) I did now this
    
    $ php composer.phar install
    Loading composer repositories with package information
    Installing dependencies from lock file
      - Installing zendframework/zendframework (2.0.6)
        Downloading: 100%         
    
        Skipped installation of bin/classmap_generator.php for package zendframework/zendframework: name conflicts with an existing file
    zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
    zendframework/zendframework suggests installing ext-intl (ext/intl for i18n features)
    zendframework/zendframework suggests installing pecl-weakref (Implementation of weak references for Zend\Stdlib\CallbackHandler)
    zendframework/zendframework suggests installing zendframework/zendpdf (ZendPdf for creating PDF representations of barcodes)
    zendframework/zendframework suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha for rendering ReCaptchas in Zend\Captcha and/or Zend\Form)
    Generating autoload files
    
    
    5) It works now
    

提交回复
热议问题