我正在使用Parse和Composer。我是PHP中新的Namespacing约定的新手。所以我在索引文件中有以下内容:
<?php
require 'vendor/autoload.php';
use Parse\ParseClient;
ParseClient::initialize('XXX', 'XXX', 'XXX');
use Parse\ParseQuery;
$businessQuery = new ParseQuery("Businesses");
$businessQuery->equalTo("Active", true);
$businessQuery->limit(1);
$businessQuery->ascending("Name");
$businessResults = $businessQuery->find();
include_once 'whatever.php';
然后我有一个包含文件,它似乎不能很好地发挥作为&#39; ParseQuery&#39;在whatever.php中失败。那么我做错了什么?请告诉我这很容易解决!洛尔
<?
$homeQuery = new ParseQuery("Photos");
?>
致命错误:Class&#39; ParseQuery&#39;在第4行的/Website/whatever.php中找不到