나는 이것을 다른 사람과 결합하고 싶습니다. 어떤 아이디어? 나는 PHP를 처음 사용합니다. $ perms가 FALSE 인 것에 따라 입력을 변경하도록하고 싶습니다.다른 PHP가 작동하지 않는 경우 간단한 PHP
<? if ($perms['user_profiles|edit_billable']===TRUE) { ?>
<div class="field">
<label><?=l(273)?></label>
<div class="input">
<input type="checkbox" name="billable" value="1" data-bind="checked: userProfile().billable, disable:isBillable();">
</div>
</div>
</div>
<? } ?>
<? if ($perms['user_profiles|edit_billable']===FALSE) { ?>
<div class="field">
<label><?=l(273)?></label>
<div class="input">
<!-- This is where the else would go -->
<input type="checkbox" name="billable" value="1" data-bind="checked: userProfile().billable, enable:isBillable();">
</div>
</div>
</div>
<? } ?>
짧은 태그 사용? 오류를 확인 했습니까? –
어떤 일이 일어나고 * 기대 * 할 일을 추가 할 수 있습니까? – jbehrens94
오류 로그를 게시 할 수 있습니까? –