aql::profile()

From SkyPHP

Jump to: navigation, search

aql | aql profile |


aql::profile() - retrieve a single record

Retrieve one specific record from a model. Designed for use on a profile page.

Contents

Description

string profile ( string $model, int $id )
string profile ( string $model, string $ide )

Parameters

model - the name of the model

id - id of the record to return

ide - encrypted id of the record to return (see encrypt)

Return Values

returns an array of values

Example

Display the first and last name of the person who is logged in

$person = aql::profile( 'person', PERSON_ID );
echo 'Hello, ' . $person['fname'] . ' ' . $person['lname'];

See Also

Known Bugs & Issues

Personal tools