简体   繁体   中英

Zend studio creates empty index.php file

Wehenever i create a new project in zend studio (New -> local php project) on an existing directory (code checked out with git) it tries to make an empty index.php file (i already have an index.php so zend studio just replaces it with an empty file). I can't seem to find the option to disable this.

Platform: Mac OSX 10.7.3

Zend studio version: 9.0.1.v20111214366 ? ie the latest version

With Zend Studio 9 you need to go File -> New -> Project which will popup with the project template list. Open up the PHP option and select "PHP Project from Existing Directory". That will take you through a flow that doesn't overwrite the index.php file.

Alternatively you can directly create a new project checked out from GIT using the interface.

似乎是zend studio的默认行为,除非Zend决定修复它,否则似乎可以修复。

撤消本地zend更改git checkout HEAD index.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM