helper
* helper 란? - 라이브러리와 비슷한 개념이긴 하나, 라이브러리는 객체기반이며, helper는 함수 기반이다. - helper를 선언한 후 다른 추가 작업 필요없이 바로 사용이 가능하다. - system/helper/*.php에서 소스를 확인 할 수 있다. * helper 레퍼런스(http://codeigniter-kr.org/user_guide_2.1.0/)- 레퍼런스를 참고하여 어떤 helper가 있고, 어떤 함수명을 사용해야 되는지 파악할 수 있다. 1.전역 helper 사용. * application/config/autoload.php $autoload['helper'] = array('url','html'); 2. 선언 helper * controller/topic.php//파일명은 ur..
2015.09.07