<?php include_once "../../vendor/autoload.php"; //using relative path //include_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'AtomicProject'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'); //using absolute path use App\Quantity_Manager\Quantity_Manager; $manager_obj = new Quantity_Manager($_POST); $manager_obj->store();
<?php include_once "./vendor/autoload.php"; use App\Quantity_Manager\Quantity_Manager; $manager_obj = new Quantity_Manager(); $manager_objs = $manager_obj->index(); $sum = $manager_obj->total(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> table{ border-collapse: collapse; } table , thead,tbody{ border: 1px solid black; } td{ width: 134px; } #utility{ float:right; width:60%; } </style> </head> <body>