daux.io/docs/15_SDK/05_PHP/25_Methods/01_Single.md

13 lines
330 B
Markdown
Raw Normal View History

2013-06-03 15:32:55 +02:00
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();