Jump to content

$p->save not working


Manol
 Share

Recommended Posts

I've this piece of code

$p = wire('pages')->get(1024);
echo $p->resp;    // OK
$p->resp = "33";  // not working
$p->of(false);
$p->save();

I can read the output of $p->resp, but when I try to save a new value $p->resp="33" is not working, any ideas.

 

Thanks.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...