YII 프레임워크 사용 - 응용 프로그램 만들기

8568 단어 yii
linux 환경은 UBUNTU14.04이고 YII 프레임워크의 버전은 1.1.17입니다.
다운로드한 YII를 압축을 풀고 압축하면 세 개의 폴더가 있습니다. "demos,requirements,framework". demos는 당연히 시범입니다. 잠시 사용하지 않습니다. Requirements는 YII 프레임워크에 독립되어 서버 정보를 검사하는 데 사용됩니다.
timeless@timeless-HP-Pavilion-g4-Notebook-PC:/usr/local/apache243/htdocs/YII$ ls yii

build composer.json demos framework nbproject README.md tests CHANGELOG CONTRIBUTING.md docs LICENSE README requirements UPGRADE

작업 수행
usr/local/php/bin$ sudo /usr/local/apache243/htdocs/YII/yii/framework/yiic webapp /usr/local/apache243/htdocs/YiiDemo  

Create a Web application under '/usr/local/apache243/htdocs/YiiDemo'? (yes|no) [no]:yes

만약 LAMP가 컴파일되어 설치되어 있다면, "#!/usr/bin/env php'를'! #/usr/local/php/bin/php (즉 당신의 php 경로)
    mkdir /usr/local/apache243/htdocs/YiiDemo

   generate index-test.php

   generate index.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/assets

      mkdir /usr/local/apache243/htdocs/YiiDemo/css

   generate css/screen.css

   generate css/bg.gif

   generate css/main.css

   generate css/ie.css

   generate css/form.css

   generate css/print.css

      mkdir /usr/local/apache243/htdocs/YiiDemo/themes

      mkdir /usr/local/apache243/htdocs/YiiDemo/themes/classic

      mkdir /usr/local/apache243/htdocs/YiiDemo/themes/classic/views

      mkdir /usr/local/apache243/htdocs/YiiDemo/themes/classic/views/site

      mkdir /usr/local/apache243/htdocs/YiiDemo/themes/classic/views/layouts

   generate themes/classic/views/.htaccess

      mkdir /usr/local/apache243/htdocs/YiiDemo/themes/classic/views/system

      mkdir /usr/local/apache243/htdocs/YiiDemo/images

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/runtime

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/tests

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/tests/report

   generate protected/tests/WebTestCase.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/tests/functional

   generate protected/tests/functional/SiteTest.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/tests/fixtures

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/tests/unit

   generate protected/tests/phpunit.xml

   generate protected/tests/bootstrap.php

   generate protected/yiic.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/views

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/views/site

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/views/site/pages

   generate protected/views/site/pages/about.php

   generate protected/views/site/contact.php

   generate protected/views/site/error.php

   generate protected/views/site/index.php

   generate protected/views/site/login.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/views/layouts

   generate protected/views/layouts/main.php

   generate protected/views/layouts/column2.php

   generate protected/views/layouts/column1.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/components

   generate protected/components/UserIdentity.php

   generate protected/components/Controller.php

   generate protected/yiic.bat

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/migrations

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/config

   generate protected/config/main.php

   generate protected/config/console.php

   generate protected/config/test.php

   generate protected/config/database.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/messages

   generate protected/.htaccess

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/extensions

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/models

   generate protected/models/LoginForm.php

   generate protected/models/ContactForm.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/controllers

   generate protected/controllers/SiteController.php

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/data

   generate protected/data/schema.sqlite.sql

   generate protected/data/schema.mysql.sql

   generate protected/data/testdrive.db

   generate protected/yiic

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/vendor

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/commands

      mkdir /usr/local/apache243/htdocs/YiiDemo/protected/commands/shell



Your application has been created successfully under /usr/local/apache243/htdocs/YiiDemo.

지금까지 생성할 앱이 생성되었습니다.

좋은 웹페이지 즐겨찾기