Pro PHP MVC by Chris Pitt

Pro PHP MVC by Chris Pitt

Author:Chris Pitt
Language: eng
Format: epub, pdf
Publisher: Apress®
Published: 2012-11-03T16:00:00+00:00


class Users extends Controller

{

public function register()

{

if (RequestMethods::post("register"))

{

$first = RequestMethods::post("first");

$last = RequestMethods::post("last");

$email = RequestMethods::post("email");

$password = RequestMethods::post("password");

$view = $this->getActionView();

$error = false;

if (empty($first))

{

$view->set("first_error", "First name not provided");

$error = true;

}

if (empty($last))

{

$view->set("last_error", "Last name not provided");

$error = true;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.