コード例 #1
0
function getCasaWithAttachmentTest()
{
    $id = 1;
    $service = new CasaService();
    $casa = $service->getCasaWithAttachment($id);
    echo $casa->attachment->filepath;
    echo '<br/>';
    var_dump($casa);
}
コード例 #2
0
ファイル: area_guide.php プロジェクト: dreamingodd/casarover
  <div class="section">
    <div class="col-md-3 hidden-sm hidden-xs">
      <img src="http://casarover.oss-cn-hangzhou.aliyuncs.com/image/tj_mx.png" width="100%" alt="">
    </div>
    <div class="m-radius-title visible-sm visible-xs">
      <h4>推荐民宿</h4>
    </div>
    <div class="col-md-9 recom-main">
    <?php 
$casaService = new CasaService();
$areaDao = new AreaDao();
$casas = array();
$casaSimpleRows = $areaDao->getRecommendCasas($area_id);
while ($row = mysql_fetch_array($casaSimpleRows)) {
    array_push($casas, $casaService->getCasaWithAttachment($row['id']));
}
if (count($casas) == 0) {
    ?>
        <?php 
    foreach ($themes as $value) {
        ?>
         <div class="col-md-6" onclick="goto_casa(4)">
           <div class="recom-content" >
             <div class="top-pic">
               <img src="<?php 
        echo $picdir . $value['pic'];
        ?>
" width="100%" alt="">
             </div>
             <div class="content">