03.17
php
saved
jben_mbp
Note
jben_mbp did not leave a note
jben_mbp did not leave a note
- <?php
- class AppController extends Controller
- {
- function beforeFilter()
- {
- // check a form has been submitted and that a user_id doesn't already exist
- {
- // add id of currently logged in user to data array
- $this->data[$this->modelClass]['user_id'] = $this->Auth->user('id');
- }
- }
- }
- ?>
Parsed in 0.021 seconds, using GeSHi 1.0.7.14