Skip to content

Instantly share code, notes, and snippets.

View kijin's full-sized avatar
🐻

Kijin Sung kijin

🐻
View GitHub Profile
@kijin
kijin / rx_ajax_comment.html
Last active March 22, 2022 03:39
라이믹스 2.0 새로고침 없는 댓글 예제
<!-- 폼에 rx_ajax 클래스를 추가하면 새로고침 없이 AJAX로 제출됩니다. -->
<!-- 제출 완료후 호출하기를 원하는 함수명을 data-callback-success 속성에 지정합니다. -->
<!-- 나머지는 라이믹스 코어가 알아서 합니다. -->
<form action="./" method="POST" class="rx_ajax" data-callback-success="refreshComments">
<!-- 댓글 작성을 위해 기본적으로 전송해야 하는 내용들 -->
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="act" value="procBoardInsertComment" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<!-- 내용을 에디터로 입력받거나 파일 업로드를 넣는 것은 숙제로 남겨둘게요.^^ -->
<textarea name="content" placeholder="댓글 내용"></textarea>
@kijin
kijin / example.md
Last active April 19, 2022 07:03
Rhymix Manual Template

Rhymix\Framework\Security

Security 클래스는 보안과 관련된 유틸리티를 모아 놓은 클래스로, 인스턴스 생성이 필요하지 않습니다.

Security 클래스에서 제공하는 것과 유사한 암호화, 난수 생성 등의 작업을 할 때는 가능하면 직접 구현하여 쓰지 말고 라이믹스 프레임워크에서 제공하는 것을 사용할 것을 권장합니다.

getRandom()

public static function getRandom(int $length = 32, string $format = 'alnum'): string