How to get concrete5 to recognize Dashboard controller for child single pages

Permalink
Hi there -

I'm creating a custom dashboard package that installs two single pages under a parent single page / folder. The parent single page controller is not loading at all and I'm not sure why. Please see the attached image for my directory structure. Please look at the "inquiry_forms" package. As you can see, I have two tier pages under "inquiry_forms" - contact form and eap form, but the main landing page for inquiry_forms (view.php) does not load its controller (inquiry_forms.php). I need to load this controller like the other C5 dashboard pages so I can redirect users to the first tier page, contact, for example. This is a bit hard to explain so I'm sorry of this is not clear. The package install method makes sure there are single pages added to the system and they are present when looking at the single pages in C5. Not sure what is going on here or how to fix.

To help explain in greater detail, there a post here:

http://documentation.concrete5.org/developers/working-with-pages/si...

under Single Pages and Paths for having multiple single pages under a section - which is what I'm trying to do, but the landing page controller is simply not loaded.

1 Attachment

stephendmalloy
 
hutman replied on at Permalink Reply
hutman
It would be helpful to see the code in your controller, however I can see from your structure that there is something wrong. Your structure should be:

/packages/inquiry_forms/controllers/single_page/dashboard/reports/inquiry_form.php
/packages/inquiry_forms/controllers/single_page/dashboard/reports/inquiry_form/eap_form.php
/packages/inquiry_forms/controllers/single_page/dashboard/reports/inquiry_form/inquiry_forms.php
/packages/inquiry_forms/single_pages/dashboard/reports/inquiry_form.php
/packages/inquiry_forms/single_pages/dashboard/reports/inquiry_form/eap_form.php
/packages/inquiry_forms/single_pages/dashboard/reports/inquiry_form/inquiry_forms.php


The view.php seems to have been dropped in 5.7 (from my experience) the other thing that could be tripping you up could be namespaces. But we'd have to see the controller content in order to know that.
stephendmalloy replied on at Permalink Reply
stephendmalloy
Thank you hutman. You were correct. I moved the files and removed the view.php. Also, I had to adjust the namespace in my inquiry_forms.php controller and everything is working now.

Thanks!!!