Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zendesk_api_client_php #79

Closed
nithishj opened this issue Mar 27, 2015 · 2 comments
Closed

zendesk_api_client_php #79

nithishj opened this issue Mar 27, 2015 · 2 comments

Comments

@nithishj
Copy link

Hi,

After i Load my library directly by downloading from git repositoy.
I get the error as:

Fatal error: Class 'Zendesk\API\Debug' not found in C:\xampp\htdocs\Former\zendesk_api_client\src\Zendesk\API\Client.php on line 240

@nithishj
Copy link
Author

I included debug.php and more classes.

then suddenly i got:
Fatal error: Class 'Zendesk\API\ClientAbstract' not found in C:\xampp\htdocs\Former\zendesk_api_client\src\Zendesk\API\Tickets.php on line 13

I went to 'Tickets.php' and included 'ClientAbstract.php'

then i got

Fatal error: Cannot redeclare class Zendesk\API\ClientAbstract in C:\xampp\htdocs\Former\zendesk_api_client\src\Zendesk\API\ClientAbstract.php on line 10

How do include all the libraries into my script apart from using composer?

@ocke
Copy link
Contributor

ocke commented Mar 30, 2015

You have to use composer. You're missing this code:

include("vendor/autoload.php");
use Zendesk\API\Client as ZendeskAPI;

But that only works after you installed it with composer...

@nithishj nithishj closed this as completed Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants