Web 썸네일형 리스트형 JSON 구조화된 모양으로 받기 (JSON_PRETTY_PRINT) 뷰타입을 URL에 파라메터로 받아 글로벌로 사용한다.JSON을 구조화된 모양으로 받음.---------------------------------------------------------------------- public $VIEW_TYPE; public function __construct() { parent::__construct(); // JSON VIEW 타입 $this->VIEW_TYPE = (isset($_GET["VIEW_TYPE"])) ? strtoupper($_GET["VIEW_TYPE"]) : "REST"; } public function index() { if ($this->VIEW_TYPE == "REST") { $this->output->set_content_type('appl.. 더보기 프로시저 호출 + 컨트롤 public function getRow() { // 모델 로드하기 $this->load->model('m_member'); // 모델로 데이터 가져오기 $result = $this->m_member->getRow(array( "MEM_SEQ"=>$MEM_SEQ )); // JSON 기본 구조 $json = array("STATUS_CODE"=>"SUCCESS", "NUM_RESULTS"=>$result->num_rows(), 'RESULTS'=>$result->result_array()); // JSON 출력 $this->output->set_content_type('application/json')->set_output(json_encode($json)); } public function .. 더보기 php 파일 include 내용 blabla~ 더보기 회원가입 유효성 검사 체크중에 remote의 url은 true와 false로 리턴 되도록 function join() { $("#frmMemberJoin").submit(); } function reset() { $("#frmMemberJoin").reset(); } var frmMemberJoinValidator = null; var frmMemberJoinSubmitted = false; $(function() { $('#memId').keypress(function(e) { if(e.which == 13) { if ($('#memPassword').val() == null) { $('#memPassword').focus(); } else { $("#frmMemberJoin").submit(); } } }); $('#me.. 더보기 로그인 유효성 검사 function login() { $("#frmMemberLogin").submit(); } var frmMemberLoginValidator = null; var frmMemberLoginSubmitted = false; $(function() { $('#inputLoginUserID').keypress(function(e) { if(e.which == 13) { if ($('#inputLoginPasswd').val() == null) { $('#inputLoginPasswd').focus(); } else { $("#frmMemberLogin").submit(); } } }); $('#inputLoginPasswd').keypress(function(e) { if(e.which == 13) { if.. 더보기 개발환경 세팅 + 사용php-5.6.1-x64httpd-2.4.10-x64CodeIgniter-2.2-stable + path 설정PHP_HOME에 PHP 경로 추가 + apache 서비스 등록httpd.exe -k install -n 서비스명 - 서비스 생성 및 삭제sc create “서비스명” binPath= “exe파일경로” sc delete “서비스명” - 파일 수정 httpd.conf - DocumentRoot를 지정, Include "C:/Apps/Servers/Apache HTTP Server/httpd-2.4.10-x64/conf/php5.conf" php5.conf - PHP5 모듈 로드 php.ini + Codeigniter 설정 - url에서 index.php를 없애려면applications/con.. 더보기 CodeIgniter란 CodeIgniter Sitehttp://www.codeigniter.com/ CodeIgniter 한국 사용자 포럼http://www.cikorea.net/ 더보기 url에서 index.php 제거 http://seoljoo.tistory.com/index.php/board/lists 와http://seoljoo.tistory.com/board/lists 중에 어느 주소가 보기 좋을까.당연히 후자. 그러나 codeigniter에서는 기본적으로 index.php가 붙은 주소가 나온다.우리는 이 index.php를 제거 해야한다. + 방법index.php가 있는 곳에(루트) .htaccess 파일을 생성한다.그리고 내용은 아래와 같이 입력한다. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L] 그리고 codeigniter가 설치된 폴.. 더보기 이전 1 다음