how to route subdirectory prenseters classes
Notice: This thread is very old.
- amik
- Member | 118
Directory structure does not matter at all, presenters are routed by class
name (and namespace) only.
just the “presenters” directory must be somewhere where RobotLoader is
configured to search classes, which is whole “app” directory by default in
nette sandbox. So, if your “presenters” directory is not subfolder of
“app”, that is the problem – RobotLoader can't find the presenter there
(even without Admin subdir).
However, if you want to logically organize your presenters, I suggest using modules: