How to create properly page in dashboard step by step?

Permalink
Hi,

Im tryng to create page in dashboard: but i cant manipulate it using controler:
What i did:
1. created directory in single_pages directory "dashboard/testpage/page.php"
2 created in the controllers folder directory with file "single_page\dashboard\testpage\page.php"
3. "registered" page in single pages .

From this point i succesfully created page in dashboard, BUT i cant manipulate anything in controller to reflect my edits to the single page, also i dont see my single page title name appearing in created page...

was doing using documentationhttps://www.concrete5.org/documentation/developers/5.7/working-with-... .

My code:

Controler

<?php
namespace Application\Controller\SinglePage\Dashboard\Testpage;
use \Concrete\Core\Page\Controller\DashboardPageController;
use Loader;
class Page extends DashboardPageController
{
   public function view()
   {
      $this->set("test", "bla bla bla");
   }
}


single page:
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<?php
echo "|".$test."|";
?>


My output is = ||

Any help would be cool.

Thanks!

 
edbeeny replied on at Permalink Best Answer Reply
edbeeny
It took me a few goes the first time.
The easiest way would be to download simple testimonials in the market place. I have created a few dashboard pages in there.

Try and work out what I have done and pay attention to the format of the namespaces.

.
bomberis replied on at Permalink Reply
well i think im doing right way, added additional code...
bomberis replied on at Permalink Reply
Yeah it works... seems that i needed to refresh single page (catch issue... dumb.....)