본문 바로가기

FrameWork/CodeIgniter30

PHP Framework CodeIgniter tutorial CodeIgniter 는 PHP framework 의 하나이다. 그동안 cake 등 여러 framework 을 보려고 했었다. (but 시간이 ㅠㅠ 본인은 java jsp 쪽으로 일해서 ㅡㅡ;) 직장을 때려치고 그동안 하고 싶었지만 시간이 없어서 못했던 reverse engeneering, 미드 때리기, php MVC 등을 하고 있는 중이었다 그중 php MVC 를 찾던 중 Google 에서 "most useful PHP framework" 이라고 검색했던것 같다 여러가지 benchmarking 도 있고 했었는데 그중 가장 눈에 띄는 것이 바로 CodeIgniter였다 각설하고 튜토리얼 링크다 Hello World 찍기 http://codeigniter.com/tutorials/watch/intro/ 2.. 2010. 4. 24.
Mysql 버전으로 인한 문제 MySQL 4.0 When attempting to connect to or use MySQL 4.0 or below as a database with CodeIgniter 1.6 and above, you’ll need to make the following adjustments, as there is a compatibility issue. First a bit of an explanation: CI 1.6 now uses a feature of MySQL 4.1> called character sets and collation. These are not supported in MySQL 4.0 and below. Well, they are supported, just not in the same f.. 2010. 4. 24.
CodeIgniter에서 controller와 method명으로 php 언어 구조명 쓰기 개인적으로 즐겨쓰는 php 프레임워크 중 codeigniter 라는 녀석이 있다. php4와 php5를 지원하는데다 여러 라이브러리 등과도 효과가 좋아 얼마전 진행했었던 국회의원 사이트 제작에도 썼었다(지금 결과는 그다지 좋지 않지만) 그런데 이 프레임워크를 사용하다 보면 2가지 이상한 걸 발견하게 된다. 가령 페이지의 처음을 말하는 index 라는 단어는 이렇게 controller 디렉토리에 파일이 있다고 가정하면 index.php 이 파일의 클래스명은 index가 되어야 하고 상속받는 클래스는 controller 클래스가 된다. 여기서 자세히 봐야 할 건 index 이다. codeigniter의 class 구조에서 index 메소드는 메소드명이 url에 들어가 있지 않을 경우 기본 실행되는데, 이때 .. 2010. 4. 24.
CodeIgniter QnA #1 - scaffolding이 안될 때 튜토리얼을 보고 스캐폴딩까지 성공하였으나 URI 문제로 세부 클릭이 에러페이지와 연결 될 때 1. config['base_url'] 을 점검하시오 2. config['index.php'] 를 점검하시오 3. .htaccess 설정을 점검하시오 http://www.codeigniter.com/forums/viewthread/3016/ 전 1번에서 해결.. 출처 : http://smle.net/tts/277 2010. 4. 24.
codeigniter library 에서 객체 사용하기 codeigniter library 에서 객체 사용하기 codeigniter 의 library 를 사용자가 임의로 생성할 때 Controller나 Model, View 처럼 모든 상속된 객체를 생성할 순 없게 되어 있다. 따라서 library 에선 다음과 같이 codeigniter 의 모든 객체를 사용할 수 있도록 해주어야 한다. $obj =& get_instance (); 위와 같이 하면 Controller 나 Model 등에서 다음과 같이 사용하는 것처럼 할 수 있다. Controller: $this->session->userdata ( 'id' ); Library: $obj->session->userdata ( 'id' ); 위처럼 사용하면 된다. 다만 library 의 모든 메소드에서 객체를 사용.. 2010. 4. 24.
CodeIgniter 자료 http://codeigniter.com/ http://www.phpeveryday.com/ http://whdrnr01.springnote.com/pages http://www.haughin.com/code/ http://extjs.com/learn/Tutorial:ExtJs_CodeIgniter [출처] 자료수집|작성자 행복나눔 2010. 4. 24.