junichi11 / cakephp-netbeans

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

Only for new projects? #1

Closed clubdesarrolladores closed 12 years ago

clubdesarrolladores commented 12 years ago

Hi, Thanks for this plugin!

I have a question, this plugin only works for new projects?

No icons or new menues in my old cakephp projects.

junichi11 commented 12 years ago

Hi clubdesarrolladores,

If CakePHP version is 1.3.x or 2.x , the plugin will display the icon. Could you tell me your version and project tree? I assume the following.

myproject
├─nbproject
├─app
├─plugins
├─vendors
├─...

Thanks.

clubdesarrolladores commented 12 years ago

Hi @junichi11

I usually bake my projects, so my tree only consist in the /app directory (/app is named with the project name, /projectx for example), Shared directory /plugins /vendors and /cake (1.3) The netbeans directory is outside /app , in a common projects directory (~/NetBeansProjects)

junichi11 commented 12 years ago

Hi @clubdesarrolladores

I see... It is the following, isn't it? Please notice that the NBproject need to have cake directory like the following.

NetBeansProjects
├─nbproject
├─projectx
├─projectx2
├─...more
├─cake
├─plugins
├─vendors
├─...

I also assume how to use your app directory. But you can use only "app"(app directory name) now. Sorry... I can't promise but I would like to be able to use not only "app" but also another name. (Please, see the project property > Framework > CakePHP. You can find "app Folder name". This feature don't work yet. Perhaps, I would use this feature or another way.)

Thanks.

clubdesarrolladores commented 12 years ago

My trees :P

NetBeansProjects: Only netbeans projects configurations (not only Cake, and only nbprojects folders)

~ $ tree ~/NetBeansProjects/ -d -L 1
NetBeansProjects/
├── cakeproject1
├── cakeproject2
├── cakeproject3
├── symfonyproject1
└── planphpproject1

In my public_html (cakephp "app" folders with diferents names):

~ $ tree ~/public_html/cakephp/ -d -L 2
/home/gaston/public_html/cakephp/
├── cakeproject1.local
│   ├── config
│   ├── controllers
│   ├── libs
│   ├── locale
│   ├── models
│   ├── plugins
│   ├── tests
│   ├── tmp
│   ├── vendors
│   ├── views
│   └── webroot
├── cakeproject2.local
│   ├── config
│   ├── controllers
│   ├── libs
│   ├── locale
│   ├── models
│   ├── nbproject
│   ├── plugins
│   ├── tests
│   ├── tmp
│   ├── vendors
│   ├── views
│   └── webroot
├── cakeproject3.local
│   ├── config
│   ├── controllers
│   ├── libs
│   ├── locale
│   ├── models
│   ├── plugins
│   ├── tests
│   ├── tmp
│   ├── vendors
│   ├── views
│   └── webroot
...

My "frameworks" tree:

~ $ tree ~/public_html/frameworks/ -d -L 1
/home/gaston/public_html/frameworks/
├── akelos
├── cakephp
├── codeigniter
├── lithium
├── slim
├── symfony
└── ultimate

here cakephp is a clone for the git repositorio of cakephp (full). Inside are /app (unused by me), /cake (or /lib/Cake ofr 2.0), /plugins/ etc.

I must create a symbolic link from /home/gaston/public_html/frameworks/cakephp/cake to /NetBeansProjects/cake? (and the same for plugins and vendors directories?)

Thanks for your time.

junichi11 commented 12 years ago

Hi @clubdesarrolladores

First, You need to create the NewNetBeans Project. NewProject (Ctrl + Shift + N) > PHP > PHP Application with Existing Source Please select your cakephp dir (e.g. /home/..../frameworks/cakephp). Second, Please create a symbolic link. e.g. ln -s /home/NetBeansProjects/cakeproject2/ /path/to/your/cakephp/cakeproject2 Last, you have to open this Project if you would like to use the plugin.

This plugin don't work if NetBeansProject don't have trees like my first comment. And please notice, if app directory name is not "app" , work only some features. (e.g. go to view/action action, some code completion.

Thanks.

junichi11 commented 12 years ago

I appended the app directory name to README.md file.

junichi11 commented 11 years ago

@clubdesarrolladores App directory name has been improved #3

clubdesarrolladores commented 11 years ago

Thanks!! This is a great plugin for cakephp developers.