내 확장 기능으로 IRRE를 만들려고했습니다. 마지막으로 백엔드 작동하지만 프론트 엔드 내 문제입니다. 일반 유체 템플릿을 사용하고 싶지만 시도한 이름은 모두 비어 있습니다. 그래서 여기 유체TYPO3 IRRE 유체 프런트 엔드
:
여기<h2 class="termin">
{data.header}
<f:if condition="{data.tx_examples_noclap} == 1">
<f:then><b class="showFullDrop"></b></f:then>
</f:if>
</h2>
<f:if condition="{data.tx_examples_noclap} == 1">
<f:then><div class="teaser-full"></f:then>
<f:else><div class="teaser-full-show"></f:else>
</f:if>
<div class="text">{data.bodytext}</div>
<div class="table">
<table border="1">
{termine}
<f:for each="{termine}" as="termin">
<tr>
<td>{termin.title}</td>
<td>{termin.termin2}</td>
<td>{termin.termin3}</td>
<td style="background:{termin.farbe}">{termin.platz}</td>
</tr>
</f:for>
</table>
</div>
</div>
여기 CONTROLER typoScript
tt_content.stalla_hp_distribution_termin = COA
tt_content.stalla_hp_distribution_termin {
10 = FLUIDTEMPLATE
10 {
file = EXT:stalla_hp_distribution/Resources/Private/Template/Termin.html
stdWrap.dataWrap = <div id="c{field:uid}" class="termin">|</div>
}
}
..
1.Classes/Domain/Model/Termin.php
<?php
namespace stalla_hp_distribution\Domain\Model;
/**
*
*
* @package stalla_hp_distribution
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
class Termin extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
protected $farbe = NULL;
protected $title = NULL;
protected $termin2 = NULL;
protected $termin3 = NULL;
protected $platz = NULL;
public function getFarbe(){
return $this->farbe;
}
public function getTitle(){
return $this->title;
}
public function getTermin2(){
return $this->termin2;
}
public function getTermin3(){
return $this->termin3;
}
public function getPlatz(){
return $this->platz;
}
public function setFarbe(){
$this->farbe = $farbe;
}
public function setTitle(){
$this->title = $title;
}
public function setTermin2(){
$this->termin2 = $termin2;
}
public function setTermin3(){
$this->termin3 = $termin3;
}
public function setPlatz(){
$this->platz = $platz;
}
}
?>
2. Classes/Domain/Repository/TerminRepository.php
<?php
namespace stalla_hp_distribution\Domain\Repository;
class TerminRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
}
?>
3. Classes/Controller/TerminController.php
<?php
namespace stalla_hp_distribution\Controller;
/**
* TerminController
*/
class TerminController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
/**
* @var stalla_hp_distribution\Domain\Repository\TerminRepository
* @inject
*/
protected $terminRepository;
/**
* action list
*
* @return void
*/
public function listAction() {
$termine = $this->terminRepository->findAll();
$this->view->assign('termine', $termine);
}
}
?>
나는 당신의 의견을 기대하고 있습니다. 당신이 termin 많은 타이틀을 참조 할 수 있습니다 경우
친절 감사는 Ascawath
컨트롤러 등은 맞습니까? – ascawath
내 문제는 컨트롤러와 유체의 통신입니다. – ascawath
그래서이 캐스는 나를 위해 일하지 않습니다. – ascawath