Jump to content
rick

[Closed] Page object not returned

Recommended Posts

Can someone please point me in the right direction. I've been staring at this for a few hours and I can't see the tree.

$userPage = wire('pages')->get("template=member-home,name={$user->name}");

In Tracy console, the page object is returned. In the template, however, a null page is returned.

What am I overlooking?

Share this post


Link to post
Share on other sites

Yeah, I had specified include=all in the selector as well with the same results. I removed it after checking the template settings.

Share this post


Link to post
Share on other sites

Hi,

If you do not login to the system. Your code surely return a null page array. Please check if you are login when you check the result.

Gideon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...