Single page just blank

Permalink
Hi

I have created the following file:
\application\single_pages\dashboard\microsite_theme.php

I have uploaded it, it contains this code:
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<form method="post" action="<?php echo $controller->action('save') ?>">
   <h1><?= t("Microsite Theme") ?></h1>
    <div class="form-group">
       sdvsdvdssdv
    </div>  
</form>


I have also created this controller file:
\application\controllers\single_page\dashboard\microsite_theme.php

It contains this code:
<?php
namespace Application\Controller\SinglePage\Dashboard;
use \Concrete\Core\Page\Controller\DashboardPageController;
class MicrositeTheme extends DashboardPageController {
    public function on_start(){
      $this->set('pageTitle','Theme');
    }
    public function view(){
       $this->set('message', 'Test Message');
    }      
}


When I visit the single page in the dashboard, it is just blank, no title or anything.
What could the issue be please?

Thanks
Dave

madesimplemedia
 
A3020 replied on at Permalink Reply
A3020
Have you tried refreshing the page via index.php/dashboard/pages/single ?
madesimplemedia replied on at Permalink Reply
madesimplemedia
Yes, but it makes no difference
A3020 replied on at Permalink Reply
A3020
All caches are disabled? Clear cache and then refresh the page? The namespaces look alright to me. Directory paths and file names too...
madesimplemedia replied on at Permalink Reply
madesimplemedia
Yes all caches are off and clearing the cache doesn't fix it.
A3020 replied on at Permalink Reply
A3020
Last resort:
- Restart PHP
- Clear cache
- Refresh single page

If it doesn't work I don't know.
madesimplemedia replied on at Permalink Reply
madesimplemedia
Still not working, I'll pick up on this next week, it may magically fix itself over the weekend!
madesimplemedia replied on at Permalink Reply
madesimplemedia
Deleted the page in the sitemap and then from trash and re-added it and it works now.
ramonleenders replied on at Permalink Best Answer Reply
ramonleenders
Try and remove the single page then and try again? Perhaps it's coupled from a package or some other thing?

-- This seemed to be the answer for madesimplemedia
madesimplemedia replied on at Permalink Reply
madesimplemedia
Worked a treat thanks :)