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.

1 Attachment

 
hutman replied on at Permalink Reply
hutman
What is in your single page's view?
jcorreia replied on at Permalink Reply 1 Attachment
On view of my single page the code go on file that I attached.

Thank you for your reply.
hutman replied on at Permalink Reply
hutman
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.
jcorreia replied on at Permalink Reply 5 Attachments
Ok, follow ins attached the folders and the principal structure. I hope that information sended
to be enought to that help me.
jcorreia replied on at Permalink Reply 1 Attachment
And the page appears like this but not return the values of variables.
hutman replied on at Permalink Reply
hutman
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.
jcorreia replied on at Permalink Reply 3 Attachments
I have already made the changes you have indicated and are still the same.

See in attachements.
hutman replied on at Permalink Reply
hutman
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.
jcorreia replied on at Permalink Reply
Ok.

Thanks very much for your help.