controller.php

Summary
controller.php
Functions
index()Displays a list of form data.
index()Displays a list of form data.
create()Creates a {$module_name} object.
edit()Allows editing of {$module_name} data.
delete()Allows deleting of {$module_name} data.
save_{$module_name_lower}()Does the actual validation and saving of form data.

Functions

index()

public function index()

Displays a list of form data.

index()

public function index()

Displays a list of form data.

create()

public function create()

Creates a {$module_name} object.

edit()

public function edit()

Allows editing of {$module_name} data.

delete()

public function delete()

Allows deleting of {$module_name} data.

save_{$module_name_lower}()

Does the actual validation and saving of form data.

Parameters

\$typeEither “insert” or “update”
\$idThe ID of the record to update.  Not needed for inserts.

Returns

An INT id for successful inserts.  If updating, returns TRUE on success.  Otherwise, returns FALSE.

public function index()
Displays a list of form data.
public function create()
Creates a {$module_name} object.
public function edit()
Allows editing of {$module_name} data.
public function delete()
Allows deleting of {$module_name} data.
Close