view controller
Permalink
the view controller does not work the same way as the other pages
i added the controller like this:
for other pages it does work for example a single page add.php it works to add it like this:
what do i call the class for the view.php page?
i added the controller like this:
<?php namespace Concrete\Package\Agenda\Controller\SinglePage\Dashboard\Agenda; use \Concrete\Core\Page\Controller\DashboardPageController; use Loader; class View extends DashboardPageController { public function view() { $this->set('test', 'test'); } }
for other pages it does work for example a single page add.php it works to add it like this:
class Add extends DashboardPageController {
what do i call the class for the view.php page?

In 5.7 I believe they did away with the view.php in the dashboard single page controllers, so the way that I believe it should be is that you have an agenda.php in the dashboard folder (outside of the agenda folder) and then make the class name Agenda
thank you it worked.
took me a long time to do it because of my stupid mistake i put
instead of
thanks a lot.
took me a long time to do it because of my stupid mistake i put
namespace Concrete\Package\Agenda\Controller\SinglePage\Dashboard\Agenda;
instead of
namespace Concrete\Package\Agenda\Controller\SinglePage\Dashboard;
thanks a lot.