Package Single Page Controller/View Not Working
Permalink
I'm building a custom package that creates a dashboard page. I've gotten the package to install successfully, and the dashboard page to show up in the dashboard navigation menu, so that's all good. However, when I actually go to the new dashboard page, nothing shows up despite that I have some HTML in the view.php.
My directory structure:
controllers > single_page > dashboard > css.php
single_pages > dashboard > css > view.php
css.php code (the controller):
What am I doing wrong? This my first time trying to do this, and I feel like I'm shooting in the dark a bit because I've not been able to find much documentation or help articles. If anyone has helpful links for building custom packages, can you send them my way?
Thanks!
My directory structure:
controllers > single_page > dashboard > css.php
single_pages > dashboard > css > view.php
css.php code (the controller):
What am I doing wrong? This my first time trying to do this, and I feel like I'm shooting in the dark a bit because I've not been able to find much documentation or help articles. If anyone has helpful links for building custom packages, can you send them my way?
Thanks!
Thanks for the suggestion!
Your files need to be:
controllers > single_page > dashboard > css.php
single_pages > dashboard > css.php
controllers > single_page > dashboard > css.php
single_pages > dashboard > css.php
Man. I tried both ways several times with no luck, but the minute you posted this and I changed it back, it worked. Somedays I wonder why I'm a developer... oy. Thank you!
You can always look around the core concrete code as well, but that won't help you so much with package-related issues.