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):
<?php 
namespace Concrete\Package\CustomCss\Controller\SinglePage\Dashboard;
use \Concrete\Core\Page\Controller\DashboardPageController;
defined('C5_EXECUTE') or die("Access Denied.");
class Css extends DashboardPageController {
   public function view() {      
   }
}


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!

 
Gondwana replied on at Permalink Reply
Gondwana
I can't help you directly, but I've found that a good way to get around problems with lack of documentation is to find a free add-on in the marketplace that has a similar structure to what you're trying to create, download it and examine it.

You can always look around the core concrete code as well, but that won't help you so much with package-related issues.
digitalrainstorm replied on at Permalink Reply
Thanks for the suggestion!
hutman replied on at Permalink Best Answer Reply
hutman
Your files need to be:

controllers > single_page > dashboard > css.php
single_pages > dashboard > css.php
digitalrainstorm replied on at Permalink Reply
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!