Hotaru Docs

 [həʊdɒks]

Function Reference/getPost

Description

Returns the post object from the database with all values for the given post_id.

Usage

<?php getPost( $post_id ) ?>

Parameters

$post_id | integer ( default = 0 )

Return Values

object of $post on success | false on failure.

Examples

<?php
     $h->post->id= 5;    
     $h->getPost();
?>

Source File

getPost() is located in content/hotaru.php which calls the post.php file from the LIBS folder.

Related