06.27
php
saved
garrettheel
Note
garrettheel did not leave a note
garrettheel did not leave a note
- <?php
- // User Model
- class User extends AppModel
- {
- public $name = 'User';
- 'username' => 'alphaNumeric',
- 'password' => 'alphaNumeric',
- 'email' => 'email'
- );
- }
- // Register function within User Controller
- function register()
- {
- {
- if ($this->User->save($this->data))
- {
- $this->Session->setFlash('Your registration information was accepted.');
- }
- }
- }
- // Register view
- ?>
Parsed in 0.070 seconds, using GeSHi 1.0.7.14