1
CakePHP에 구축중인 애플리케이션의 경우 타사 CSS 템플릿 (Pure-CSS)을 사용하고 싶습니다. 템플릿은 매 순간마다 하나의 요소에 여러 개의 클래스를 할당해야합니다. 많은 곳에서 저는 CakePHP 도우미를 사용하고 있습니다. 양식을 생성합니다. 나는이 헬퍼를 사용하여 둘 이상의 클래스를 할당하는 방법을 알아낼 수 없습니다 :도우미를 사용하여 html 요소에 여러 클래스 할당
//this works (only one class)
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => 'pure-form'));
//but none of these does
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => 'pure-form,pure-form-aligned'));
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => {'pure-form','pure-form-aligned'}));
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => 'pure-form', 'class' => 'pure-form-aligned'));
가 어떻게 헬퍼 메소드를 사용하여 HTML 요소에 여러 클래스를 줄 수 있습니까?
답변을 받아주십시오 각 CSS 클래스를 분리 할 수 있습니다. – AD7six