Warning: include(../../script/pdocrud.php): Failed to open stream: No such file or directory in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-vertical-timeline.php on line 1

Warning: include(../../script/pdocrud.php): Failed to open stream: No such file or directory in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-vertical-timeline.php on line 1

Warning: include(): Failed opening '../../script/pdocrud.php' for inclusion (include_path='.:/opt/remi/php81/root/usr/share/pear:/opt/remi/php81/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-vertical-timeline.php on line 1
PDOCrud - CRUD application generator for PHP and Mysql, Pgsql and Sqlite database.

Plugin vertical timeline (Added in v 3.6)

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 .="

".$row["message_thread_code"]."

".$row["message"]."

Read more ".$row["message_date"]."
"; } } $html_data = array("
$block
"); echo $pdocrud->render("HTML", $html_data);

Plugin vertical timeline example - PDOCrud


Fatal error: Uncaught Error: Class "PDOCrud" not found in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-vertical-timeline.php:67 Stack trace: #0 {main} thrown in /var/sentora/hostdata/digjainwi/public_html/allsanginfodev/demo/pages/plugin-vertical-timeline.php on line 67