일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 파주골프장
- 개복숭아 판매
- 포천온천
- 포천수영장
- 휘닉스파크
- 포천가볼만한곳
- LGG6
- 자연산개복숭아
- 제주도눈
- wp-900
- 제주도설경
- 개복숭아판매
- 야생개복숭아 판매
- 태안수영장펜션
- 제주도눈썰매
- 충주골프장
- 개복숭아
- 덕소골프샵
- 야생개복숭아
- 서원힐스
- 잠실수영장
- 포천투어
- 제주도
- 괌
- 괌자유여행
- 돌복숭아
- 자연산 개복숭아
- 한라산
- 경기북부골프장
- 조경철천문대
- Today
- Total
목록개발은 핵찜이야/codeigniter (7)
Live Brilliant
codeigniter index.php 없애기1. /application/config.php/*|--------------------------------------------------------------------------| Index File|--------------------------------------------------------------------------|| Typically this will be your index.php file, unless you've renamed it to| something else. If you are using mod_rewrite to remove the page set this| variable so that it is blank.|*/$..
1. index.php경로를 알고, 주요 경로 상수를 설정 define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); define('EXT', '.php'); define('BASEPATH', str_replace("\\", "/", $system_path)); define('FCPATH', str_replace(SELF, '', __FILE__)); define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); define('APPPATH', $application_folder.'/'); //부트스트랩 파일 로드require_once BASEPATH.'core/CodeIgniter.php'; 2. /system/..
문제: codeigniter 에서 웹 에디터 사용중 html 손실 문제가 발생 한다. 아래와 같은 html 코드가제목1 이렇게 변형되어 나타나는 문제 발생제목1 ------------------------------------------------------------------원인은 config.php 파일에 아래 설정값을 True 하였더니 문제가 발생하였다 다시 FALSE로 수정입력 클래스는 크로스 사이트 스크립팅 공격을 방지하기 위해 자동으로\입력 값을 필터링하는 기능 $config['global_xss_filtering'] = FALSE;
codeigniter 에서는 URL 헬퍼를 제공하는데 site_url() 과 base_url()이 있다. /*|--------------------------------------------------------------------------| Base Site URL|--------------------------------------------------------------------------|| URL to your CodeIgniter root. Typically this will be your base URL,| WITH a trailing slash:||http://example.com/|| If this is not set then CodeIgniter will guess the pro..
codeigniter 에서 admin/board 를 라고 치면 페이지 접근이 되는데admin/board/board 라고 치면 접근이 안된다.ci에서 controller에 하위폴더를 한단계까지밖에 접근이 안된다고한다. ex) controllers/board.php 또는 controllers/admin/board.php 까지 만들 수 있는데 controllers/admin/board/board/list.php 이런식으로로 안되는 것이다. 그래서 아래와 같이 MY_Router 를 만들어 주면 된다. application/core 폴더아래 추가 class MY_Router extends CI_Router{ /** * Constructor * * Runs the route mapping function. */ f..
Codeigniter 쿼리스트링URL 과 세그먼트 URL 혼합 사용 하기 1. 세그먼트 기반 접근방식 예: example.com/product/search/test/2 2.쿼리스트링 접근방식 예: example.com/?c=product&m=search&pname=test&pid=2 위 두가지 동시에 사용하는 방법 Option 1: Mixing Globally(전역 적용) To enable this globally, go to your application/config.php file, and look for $config['uri_protocol']variable and change it to: $config['uri_protocol'] = "PATH_INFO";After that, find the $..
1. 코드이그나이터 압축풀기 2. RESERVED ROUTES 예약된 경로/application/config/routes.php $route['default_controller'] = 'welcome';위 라우팅 경로는 URI 가 아무런 데이터도 포함하지않았을때 어떤 컨트롤러가 로드 될지 나타냅니다. 루트경로를 호출했을경우가 이에 해당합니다.=> 난 위 설정을 home 으로 변경 하였다. 2. 하위 디렉토리 아래와 같이 셋팅 3. 접근 방법/localhost/ /localhost/member/ index.php 파일 제거