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
single page:
My output is = ||
Any help would be cool.
Thanks!
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:
My output is = ||
Any help would be cool.
Thanks!
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.
.