VARIABLE RETURN NULL ON SINGLE PAGE WITH VERSION PHP 7
Permalink
Hi,
Someone can tell me when I create on dashboard one single page on Concrete 5.7.5.13 the variable return NULL and the page appears empty, just appear NULL.
My version of my PHP is 7.1.7.
Thanks,
I will wait an answer.
Someone can tell me when I create on dashboard one single page on Concrete 5.7.5.13 the variable return NULL and the page appears empty, just appear NULL.
My version of my PHP is 7.1.7.
Thanks,
I will wait an answer.
What is in your single page's view?
On view of my single page the code go on file that I attached.
Thank you for your reply.
Thank you for your reply.
I'm sorry, can you please tell us what the structure of everything you have trying to display this page and the actual file names? Something is wrong here but it's hard to know what without more information. You should not include jquery, bootstrap, or fontawesome in your single page, all those are already included in the dashboard.
Ok, follow ins attached the folders and the principal structure. I hope that information sended
to be enought to that help me.
to be enought to that help me.
And the page appears like this but not return the values of variables.
Ok, I see a bunch of things here that aren't right.
1) The namespace for your controller isn't right, it should be Application\Controller
Dashboard\SinglePage;
2) The class for your controller isn't right, it should be Mag with a capital.
3) The directory location for your single page view isn't right, it should be /application/single_pages/dashboard/mag.php
Then you also shouldn't be including jquery, bootstrap, and fontawesome in your single page as they are already included in the dashboard.
1) The namespace for your controller isn't right, it should be Application\Controller
Dashboard\SinglePage;
2) The class for your controller isn't right, it should be Mag with a capital.
3) The directory location for your single page view isn't right, it should be /application/single_pages/dashboard/mag.php
Then you also shouldn't be including jquery, bootstrap, and fontawesome in your single page as they are already included in the dashboard.
I have already made the changes you have indicated and are still the same.
See in attachements.
See in attachements.
Sorry, missed on thing, the location of your controller should be application/controllers/single_page/dashboard/mag.php
And you're still not setting any of those variables, so I'm not sure how they're supposed to be populating.
And you're still not setting any of those variables, so I'm not sure how they're supposed to be populating.
Ok.
Thanks very much for your help.
Thanks very much for your help.