This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206318 - [Right click -> Navigate -> Go to view] doesn't work
Summary: [Right click -> Navigate -> Go to view] doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Zend (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 09:45 UTC by monk.e.boy
Modified: 2012-04-12 10:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description monk.e.boy 2011-12-13 09:45:32 UTC
Possible source of error: My project is set up with modules, so my views are in a different location, they live in:

application/modules/[module name]/views/scripts/[controller name]/

I looked around the options to find a setting to change/investigate what the IDE is doing, but I couldn't find anything.
Comment 1 Tomas Mysik 2011-12-13 10:25:00 UTC
How the [module name] can be recognized? Could you please paste here your relative paths for:
- controller (action), e.g. application/controllers/IndexController.php
- view, e.g. application/views/scripts/index/index.phtml

How is it if one has modules, please?

Thanks.
Comment 2 monk.e.boy 2011-12-13 12:06:43 UTC
I hope the formatting doesn't get mangled, here is my project layout:

application
  configs
  layouts
    scripts
      partials
  models
  modules
    default
      controllers
        IndexController.php
      views
        scripts
          index
            index.phtml
          about
          auth
    admin
      controllers
      views
        scripts
          index
    user
      controllers
      views
        scripts
          index
    other
      controllers
      views
        scripts
          index
config
library
public


The examples you posted are:


For module 'default'
- controller application/modules/default/controllers/IndexController.php
- view       application/modules/default/views/scripts/index/index.phtml


For module 'sales'
- controller application/modules/sales/controllers/IndexController.php
- view       application/modules/sales/views/scripts/index/index.phtml


This *isn't* the only way of doing modules in ZF, but I think it is the most common.

cheers,

monk.e.boy
Comment 3 Tomas Mysik 2011-12-13 13:21:48 UTC
Thanks a lot, I will look at it.
Comment 4 Tomas Mysik 2012-04-11 13:44:47 UTC
BTW is there any documentation for modules in FZ? In other words, is there any official guide how to use modules in your ZF application?

Thanks.
Comment 5 Tomas Mysik 2012-04-12 09:14:44 UTC
Well, I have found [1] so not sure what to support...

[1] http://framework.zend.com/manual/en/zend.controller.modular.html
Comment 6 Tomas Mysik 2012-04-12 10:31:43 UTC
(In reply to comment #5)
> Well, I have found [1] so not sure what to support...

My mistake - it seems that "application/modules" is the official way.

Thanks.
Comment 7 Tomas Mysik 2012-04-12 10:53:59 UTC
Well, it works for me in the current development version of NetBeans. Please, try it and reopen if it does not work for you.

Thanks.

Product Version: NetBeans IDE Dev (Build 20120412-9eb622838cd5)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01
System: Linux version 3.0.0-17-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 8 Tomas Mysik 2012-04-12 10:54:53 UTC
BTW please notice that you must be _inside_ the action method (clicking on the method name does not work).

Thanks.