0
wamp 서버를 사용하고 Propel.I Propel을 사용하여 내 서비스를 작성했지만 서비스에서 반환 된 데이터를 연결하려고 할 때 반환 유형을 인식 할 수 없습니다. flex에 대한 propel 반환 유형 구성
이
내가 자동 감지를 선택하면<?php
// Include the main Propel script
require_once 'C:/wamp/propel/runtime/lib/Propel.php';
// Initialize Propel with the runtime configuration
Propel::init("C:/wamp/www/school/build/conf/school-conf.php");
// Add the generated 'classes' directory to the include path
set_include_path("C:/wamp/www/school/build/classes" . PATH_SEPARATOR . get_include_path());
class TeacherService {
function getTeachers()
{
$allTeachers=TeacherQuery::create()->find();
$teachers=array();
foreach($allTeachers as $teacher1)
{
array_push($teachers, $teacher1);
}
return $teachers;
}
}
?>
내가 복귀가 오류를 제공 입력 아직 데이터 그리드에서 teacers의 정보를 표시 wanto 쓴 PHP 코드
'teacher' cannot be set to the data type "StdClass" because it has no properties.
propel에 의해 반환 된 교사 행의 속성을 flex에 알려주려면 어떻게해야합니까?
PHP 코드 만 제공하는 것으로 보이는 PHP 태그 b/c를 추가했습니다. 나는 개인적으로 추진기가 무엇인지 모릅니다. – JeffryHouser