Retrieves a Lifestyle given a lifestyleID.
<!-- getLifestyle() --> <?php require_once('libraries/happpi/LoadAll.php'); // points to the LoadAll.php file for loading the library. // once the library is required, you can now use one of the main "interaction" classes. // These interaction classes contain methods that get information from our REST API and // converts them to PHP objects for you to use. $Cat = new CurtCategory(); // create a new category object to gain access to its functions. $lifestyle = $Cat->getLifeStyle(256); // call getLifestyle() and pass in lifestyle ID which returns an APICategory Object. $lifestyleTitle = $lifestyle->getCatTitle(); // get the title of the lifestyle by accessing the getter for the property catTitle echo "<h2>Lifestyle: " . $lifestyleTitle . " </h2>"; echo "<strong>Short Description: </strong>" . $lifestyle->getShortDesc(); ?>