I am using Odoo 10. I write the code in php to access the odoo database. I have the package of ripcord in my php index folder. The file is opened correctly but the class is not accessible. How to include the ripcord class in php
PHP Code:
<?php
$url = "localhost:8061";
$db = "test";
$username = "admin";
$password = "123";
require_once("Ripcord/src/Ripcord/Ripcord.php");
$info = Ripcord::client('https://demo.odoo.com/start')->start();
list($url, $db, $username, $password) =
array($info['localhost:8061'], $info['test'], $info['admin'], $info['123']);
?>
It shows the
PHP Notice: Undefined variable: classnamme in /home/srija/html/login.php on line 10 PHP Fatal error: Uncaught Error: Class 'Ripcord' not found in /home/srija/html/login.php:12 Stack trace:
#0 {main}
thrown in /home/srija/html/login.php on line 12