laravel 4.1 앱이 Exchange 서버와 통합되는 방법을 찾고 있습니다.laravel로 php-ews 사용
이 스크립트는 내가 필요로하는 것으로 보이는 https://github.com/jamesiarmes/php-ews입니다. 그러나 지금은 어떻게 내 laravel 애플 리케이션에 그것을 통합 할 수 없습니다. 나는 다음과 같은 경로를 만든 내 경로에서
<?php
require_once('/exchange-ews/ExchangeWebServices.php');
require_once('/exchange-ews/EWSAutodiscover.php');
require_once('/exchange-ews/EWSType/CalendarItemType.php');
/**
* Class to control EWS Exchnage
*/
class EwsController
{
public $server = 'xxxx';
public $username = 'xxx';
public $password = 'xxxx';
public $version = 'xxxx';
public function getCalendarEvent()
{
$ews = new ExchangeWebServices($server, $username, $password, $version);
}
public function getServer()
{
$ews = EWSAutodiscover::getEWS($this->$username, $this->password);
return $ews;
}
}
:
은 내가 내 컨트롤러 폴더에 컨트롤러를 만든 내 응용 프로그램 폴더
을 한 폴더에 스크립트를 복사 한 :
Route::get('testEWS', function()
{
$result = EwsController::getServer();
return $result;
});
지금까지 아무것도 수행하지 않습니다. 내가 경로를 호출하면 서버 오류가 발생하지만 오류가 무엇인지 알 수 없습니다. 단순히 흰색 화면.
아직 내 응용 프로그램에 비 laravel 패키지를 통합 할 수 있을지 모르겠다. 어떻게해야합니까?
감사
업데이트 여기
오류의 시점에서 Xdebug는 오류 로그에서 일부 출력입니다 :
결국fl=php:internal
fn=php::ErrorException->__construct
133 7
fl=C:\wamp\www\golfmanager\golfmanager\vendor\laravel\framework\src\Illuminate\Exception\Handler.php
fn=Illuminate\Exception\Handler->handleError
129 12886
cfl=php:internal
cfn=php::error_reporting
calls=1 0 0
131 1
cfl=php:internal
cfn=php::ErrorException->__construct
calls=1 0 0
133 7
을 표시있어 보장하기 위해 내 경로에 다음을 추가했다. 우리는 당신 없이는 당신을 도울 수 없습니다. –
감사합니다. 나는 아파치 로그를 보았다. 내가 가지고있는 것은 access.log에서 500 오류입니다 - xdebug에서 출력을 기록하고 위에 게시했습니다. 나는 laravel의 출력에 크게 의존하여 디버깅하고 사용 가능한 다른 로그와 메소드를 잊어 버렸다. – Ray