YII 프레임워크 사용 - 응용 프로그램 만들기
8568 단어 yii
다운로드한 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.
지금까지 생성할 앱이 생성되었습니다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
LimeSurvey HelloWorld 플러그인LimeSurvey 내의 명령줄에서 간단한 명령을 실행하려면 다음 코드가 필요합니다.upload/plugins 아래의 폴더 구조는 다음과 같아야 합니다. 헬로월드 config.xml HelloWorld.php Lim...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.