daux.io/docs/15_SDK/05_PHP/25_Methods/01_Single.md
2013-06-03 08:32:55 -05:00

330 B

Single is the heart of any website. It represents a single record in the CMS system.

To make a call to the api simply use the $cms variable:

$page = $cms->key("OBJECT-NAME")->single();

Call a single record by ID

$cms->key(1234)->single();

Call a single record by slug

$cms->parent(key)->slug(about-us)->single();