Extra Form
PHP PHP 5.6
CMS XpressEngine

https://xetown.com/questions/1426675

 

이 글에 질문해서 성공했습니다!

 

그러고 나서 템플릿에

 

<!--@if(in_array(Context::get("mid"), $list_list->name) == true)-->

일치

<!--@end-->

 

$list_list->name 에는 저장된게 mid 이름이 저장이 되어있습니다..

저렇게 하면 아무 반응이 없는데 다른 방식으로 사용을 해야하나요??

  • profile

    == true 요건 없어도 되지않나요?

  • profile profile
    넵 없어도 되는데..안되네요 다시 질문글 올리겠습니다 ㅠㅠ
  • profile
    <!--@if(Context::get('mid') == $list_list->name)-->
  • profile profile
    감사합니다^^
  • profile profile
    이렇게 해야 된다면 $list_list->name 이 배열이 아닌데요?
  • profile profile
    위에 방법도 아니라서 foreach 이걸루 해결했습니다..코드를 모르니 오래걸리네요 ㅠㅠ