Single page controller not working
Permalink 1 user found helpful
Hi,
I need some help in new version of concrete5.
I have create simple single page on front end
but after creating controller for single page it not working.
When i call method of controller it show page not found .
I have created :
/application/single_pages/media.php
and
application/controllers/single_pages/media.php
Please help me out .
I also try to find any solution but not get any help.
I need some help in new version of concrete5.
I have create simple single page on front end
but after creating controller for single page it not working.
When i call method of controller it show page not found .
I have created :
/application/single_pages/media.php
and
application/controllers/single_pages/media.php
Please help me out .
I also try to find any solution but not get any help.
Yes, this is the code i used on files
But still not working when i print variable on view page
<?php namespace Application\Controller\SinglePage; use \PageController; class Media extends PageController { public function view() { $selectedtitle = 'Test'; $this->set('selectedtitle', $selectedtitle); } }
But still not working when i print variable on view page
Can you post the pathes of the page and the controller?
path already mention on first question
The path for the controller is
The path for the controller is
/application/controllers/single_pages/media.php
/application/single_pages/media.php
As said in my Post, the path for the controller is: "single_page" not "single_pages"
/application/controllers/single_page/media.php
Got it !!!
Thanks Daenu
also please can you tell me how i become good developer in concrete5
Any link or way we will learn easliy
Thanks Daenu
also please can you tell me how i become good developer in concrete5
Any link or way we will learn easliy
still not working? Do you see the single page in the Single Pages section of the dashboard?
Did you create the Single Page in the dashboard after creating the file?
Because when I reproduce your code it works
Did you create the Single Page in the dashboard after creating the file?
Because when I reproduce your code it works
Yes working
Thanks Daenu
also please can you tell me how i become good developer in concrete5
Any link or way we will learn easliy
Thanks Daenu
also please can you tell me how i become good developer in concrete5
Any link or way we will learn easliy
Cool Glad I could help.
Do you know MVC Programming?
c5 5.7 is based on the Laravel Framework, so it's good to know about. Unfortunately the developer docs aren't complete as the time of writing this, but there is already some docs to start with.http://documentation.concrete5.org/developers...
Do you know MVC Programming?
c5 5.7 is based on the Laravel Framework, so it's good to know about. Unfortunately the developer docs aren't complete as the time of writing this, but there is already some docs to start with.http://documentation.concrete5.org/developers...
The path for the single page is
The path for the controller is
*For the controller, the folder name "single_page" has to be singular. *
The namespace for the controller is