Jump to content

sakkoulas

Members
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. sakkoulas's post in print user from function was marked as the answer   
    hi Manaus 
    try this 
    function dothing($thepage) { if (wire('user')->isSuperuser()) { echo wire('user')->name; } } dothing();
  2. sakkoulas's post in Creating new user, can't save page 0 was marked as the answer   
    hi manaus  try this
    $u = new User(); $u->of(false); $u->name = $name; $u->email = $email $u->pass = $password; $u->addRole("UserRole"); $u->save(); $u->of(true);   you can read here http://processwire.com/talk/topic/3543-register-users-and-add-page-same-as-username/#entry34822
×
×
  • Create New...