Creates vertical timeline by passing the required data. You can get data in form of array and use it to create the html block.
$pdocrud = new PDOCrud();
$pdocrud->addPlugin("vertical-timeline-master");//to add plugin
$data = $pdocrud->getPDOModelObj()->orderBy(array("message_date"))->select("message");//get data to be displayed in time line e.g. getting data from message table
//Create html from data
//You can print_r the $data to understand the column name that needs to be used to create the block.
$block = "";
if(count($data)){
foreach($data as $row){
$block .="
";
}
}
$html_data = array("$block");
echo $pdocrud->render("HTML", $html_data);