junichi11 / cakephp-netbeans

CakePHP support in NetBeans
http://cakephp.org
71 stars 18 forks source link

Support for project that was installed with composer #63

Closed junichi11 closed 10 years ago

junichi11 commented 11 years ago

Currently, if we install cakephp with composer [1] : (example: [2]), plugin doesn't recognize it as CakePHP project.

So, I'll try to fix it.

7.3

[1] http://book.cakephp.org/2.0/en/installation/advanced-installation.html#installing-cakephp-with-composer [2] https://gist.github.com/nojimage/7022740

This issue is from @nojimage Thanks for reporting!

mauermann commented 10 years ago

Is there any progress on this issue? I tried to set "custom directory path" in project properties, but no matter what I enter in "CakePHP Root" it keeps warning me "Not found cake script file (cake.php)". What path do I have to enter?

Directory structure is:

Config/
Console/
    cake*
    cake.bat*
    cake.php*
Controller/
.
.
.
Vendor/
    bin/
        cake -> ../pear-pear.cakephp.org/CakePHP/bin/cake*
        cake.bat -> ../pear-pear.cakephp.org/CakePHP/bin/cake.bat*
        cake.php -> ../pear-pear.cakephp.org/CakePHP/bin/cake.php*
        composer-php*
        composer-php.bat*
    composer/
    pear-pear.cakephp.org/
    autoload.php
View/
webroot/
composer.json
composer.lock
.gitignore
.htaccess
index.php
junichi11 commented 10 years ago

This issue is already implemented. But I have not provided nbm for NetBeans 7.4. Could you write your environment? If you are using 7.3, you can download 0.9.6.1 (https://github.com/junichi11/cakephp-netbeans/releases)

mauermann commented 10 years ago

I use Netbeans 7.4 with 1381475566_org-cakephp-netbeans-0.9.6-for-nb74.nbm from netbeans plugin repo

junichi11 commented 10 years ago

@mauermann I have added a nbm for 7.4. Please try to test it. But please notice that we have a problem #66 if you are Mac user.

Thanks.

mauermann commented 10 years ago

Works great on Linux! However, I had to manually change app path from "app" to "." Thanks

junichi11 commented 10 years ago

Works great on Linux!

:+1:

I had to manually change app path from "app" to "."

If you use app directory as a source directory, you have to do that because I assume that default source directory is CakePHP Root.

Thanks.

mauermann commented 10 years ago

With Netbeans 8.0 and CakePHP 2.5.x I get the same error message again: "Not found cake script file(cake.php)". CakePHP was installed according to the official documentation [1]

Compared to older versions there is no cake.php inside Vendor/bin/ anymore.

[1] http://book.cakephp.org/2.0/en/installation/advanced-installation.html#installing-cakephp-with-composer

junichi11 commented 10 years ago

Please try to set your CakePHP root to project properties.

Perhaps, it's your/vendor/cakephp/cakephp

mauermann commented 10 years ago

Thanks. Setting CakePHP root to "Vendor/cakephp/cakephp" works

junichi11 commented 10 years ago

You are welcome :)