Add new single page in update package
Permalink
Hi
I have own package. At now, I would like to add new single page (update package).
So, I've created file named list_event_view.php in controller and single_page folders.
I've added to "install" controller single page (it is visible in site map).
But when I go to site (from site map) I will see blank page.
Although, I added "die" function, it won't run.
What can I do wrong ? Some advice or tips ?
I have own package. At now, I would like to add new single page (update package).
So, I've created file named list_event_view.php in controller and single_page folders.
I've added to "install" controller single page (it is visible in site map).
But when I go to site (from site map) I will see blank page.
Although, I added "die" function, it won't run.
What can I do wrong ? Some advice or tips ?
I think, that controller name and namespaces are ok - I've copied from another file of my controller.
It is weird, that I can't display "die" function.
Unfortunately, I can't show my code, because it's not open source plugin :) But you can check in free version.
I've copied all from this file to list_event_view.php (new fiel):
https://github.com/dszymczuk/dsEventCalendar57/blob/master/controlle...
I've commented all bodies in functions and changed class name to ListEventView .
It show my blank page and I can't run die before class declaration :(
It is weird, that I can't display "die" function.
Unfortunately, I can't show my code, because it's not open source plugin :) But you can check in free version.
I've copied all from this file to list_event_view.php (new fiel):
https://github.com/dszymczuk/dsEventCalendar57/blob/master/controlle...
I've commented all bodies in functions and changed class name to ListEventView .
It show my blank page and I can't run die before class declaration :(
I've noticed this issue as well.
I haven't tried to fix it yet, but it appears that when the new page is put into the sytem, the cFilename in the Pages table isn't being populated, which means a controller isn't being set for it.
Luckily I'm still in development, so can just uninstall and reinstall anyway, which fixed it for me.
I haven't tried to fix it yet, but it appears that when the new page is put into the sytem, the cFilename in the Pages table isn't being populated, which means a controller isn't being set for it.
Luckily I'm still in development, so can just uninstall and reinstall anyway, which fixed it for me.
can you outline the structure of your package: quite often errors like this are to do with the directory names not being correct or the namespaces being specified incorrectly in the files.