2

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

Sudhir Bastakoti
  • 99,167
  • 15
  • 158
  • 162
thecodeassassin
  • 816
  • 10
  • 24

3 Answers3

1

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.

pasamio
  • 111
  • 1
  • 6
0

Seems to be default zend studio behavior, can seem to be fixed unless Zend decided to fix it.

thecodeassassin
  • 816
  • 10
  • 24
-1

Undo local zend changes - git checkout HEAD index.php

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
  • I already do this each time (well actually i reset the index file), i want to prevent doing this by stopping zend studio creating the index when it already exists. – thecodeassassin Mar 20 '12 at 08:42