Giter VIP home page Giter VIP logo

php-ncmb's People

Contributors

koyhoge avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

php-ncmb's Issues

Fatal errorの解決方法

PHPでmbaasのデータストアに登録をしたいと思い、php-ncmbを使って登録しようとしましたが、エラーが出てきました。解決方法の検討をよろしくおねがいします。

###test.php

<?php

require 'vendor/autoload.php';

use Ncmb\NCMB;
use Ncmb\Object;
$appKey    ='794989f6e7e6a55fc6c21a079846453b40eae2425cb866a3c7ccc4625e6861b2';
$clientKey ='5a73aed2f40bf1d96b0a97ea70e408414723cc546b1bd5c9f2f71fe728f31eef';
NCMB::initialize($appKey,$clientKey);

$className = 'Friends';
$friend = new Object($className);
$friend->name = 'サーバルちゃん';
$friend->phrase = 'たーのしー';
$friend->save();

?>

###エラー内容

Fatal error: Cannot use Ncmb\Object as Object because 'Object' is a special class name in C:\xampp\htdocs\iot2\com\test.php on line 7

###使用
composer v1.6.5
xampp v3.2.2
php-ncmb v0.1.1

###参考
https://github.com/NCMBMania/php-ncmb
https://packagist.org/packages/ncmbmania/php-ncmb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.