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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...