Extra Form
PHP PHP 7.4
CMS Rhymix 2.1

안녕하세요.

 

내 모듈 제목 $oDocument->get('module_title')

문서 제목 $oDocument->getTitle() / $oDocument->get('title')

은 이렇게 잘 뽑아 왔는데

 

$SITE_TITLE 이 

내 사이트 이름은 혹시 변수 어떻게하면 화면에 불러올 수 있을까요?

 

$oDocument->get('site_title') 로 해봐도 안되고

$oDocument->get('site') 로 해봐도 안되네요.

 

글 읽기 화면 기준입니다.

 

그리고 아래 두개 코드는 같은 기능을 하는데 어떤것이 더 나을까요?

뭔가 아래쪽껄 통일되게 쓰고싶네요.

$oDocument->getTitle()

$oDocument->get('title')

 

질문이 많아 죄송하며

 

감사합니다.

 

  • profile
    https://github.com/rhymix/rhymix/blob/master/classes/context/Context.class.php#L769C25-L769C37

    Context::getSiteTitle()로 호출하시면 됩니다.
  • profile profile
    감사합니다. 잘작동하네요.

    /classes/context/Context.class.php
    여기에 문서의 모든 다 호출가능한것인거죠?

    가이드 삼아서

    잘 활용하겠습니다.!
  • profile profile
    스태틱 함수로 된것들은 인자만 확실하게 잘 맞춰주면 호출하시는데 문제가 없는데 일반 함수나 맴버변수같은경우 힘들 수 있습니다.