콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6997 화면

       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

아바타
취소
베스트 답변
require_once("ripcord.php");
Use above I think it will work
아바타
취소