본문 바로가기

FrameWork/CodeIgniter30

자신만의 라이브러리 만들기 - 라이브러리 만들기   우리는 보통 라이브러리를 사용할때 CodeIgniter에서 제공하는 라이브러리만 사용해왔습니다...   하지만 자신만의 라이브러리를 만들어서 CodeIgniter 에서 사용할수 있습니다..   대부분 application/libraries 폴더안에 라이브러리 파일을 만들게 됩니다..    CodeIgniter는 당신의 라이브러리에서 CodeIgniter 라이브러리를 확장하는것을 허용합니다.   요약하겠습니다..     *당신은 새로운 라이브러리를 완벽하게 만들수 있습니다.     *당신은 CodeIgniter 라이브러리를 확장할수 있습니다.     *당신은 CodeIgniter 라이브러리를 교체할수 있습니다..   이제 하나하나 자세히 알아보겠습니다..      Note: 데이터.. 2010. 4. 24.
데이터베이스 관련 라이브러리를 찾지 못할때 ttp://codeigniter.com/forums/viewthread/69605/ Fatal error: Call to a member function get() on a non-object in /var/www/CodeIgniter/system/application/controllers/blog.php thanks mate. i think i found the problem the autoupload of class is changed from the older version to the newest version in which it uses $autoload[’libraries’] = array(’database’); to load the database class. its working now,.. 2010. 4. 24.
[CodeIgniter ERROR] Unable to connect to your database server using the provided settings. ttp://codeigniter.com/forums/viewthread/47428/ joeles Posted: 11 January 2007 05:59 PM [ Ignore ] [ # 2 ] Senior Member Total Posts: 485 Joined 2006-09-14 What version of MySQL are you using? 4.1 and above require the mysqli driver. Try: $db['default']['dbdriver'] = "mysqli"; Signature Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27 Unable to connect to your database serv.. 2010. 4. 24.
Session 라이브러리 주의 사항 기존의 system - libraries - Sesssion.php 파일은 쿠키에 관련된 라이브러리 이다 http://codeigniter.com/wiki/File:CI_1.5.1_with_Session.zip/ 위의 링크로 세션 라이브러리를 받아서 기존건 다른이름로 바꾸고 Session.php를 덮어 씌워야 세션이 사용가능하다..... 출처 : http://myjob.tistory.com/43 2010. 4. 24.
코디이그나이터 한국 사용자 포럼 코드이그나이터 한국 사용자 포럼 메뉴얼도 한글로 지원이 된다. 이제는 CI사용해서 개발하기가 좀더 수월해질듯 http://www.codeigniter-kr.org/user_guide/ 2009. 11. 26.
Codeigniter 에서 세션 사용하기 CodeIgniter 에서 제대로 세션이 동작되지 않는 경우가 있다. 난 비록 얼마 사용하지 않았지만.. 이번에 좀 큰 시스템을 개발 중인데 이같은 문제가 발생해 난감해 하던차에 구글을 뒤져 다음과 같은 코드로 바꿔치기 하면 된다는 사실을 알았다. 단 이때 코드는 system/libraries 에 있는 Session.php 를 다른 이름으로 바꾸고 그 다음에 아래 내용을 Session.php 로 저장해서 넣으면 된다. 즐거운 CodeIgniter 생활이 되기를.. [출처] Codeigniter 에서 세션 사용하기 |작성자 행복나눔 2008. 6. 30.
codeigniter 설치 트러블 슈팅 codeigniter 설치 트러블 슈팅 분류없음 2008/02/27 10:37 출처 : http://cgibin.co.kr/tt/tag/codeIgniter 디폴트 페이지를 읽는데는 문제가 없고, 그 외의 페이지가 잘 표시 되지 않는 경우, 검색 엔진 프렌들리URL 을 생성하는데 필요한 PATH_INFO 환경 변수가 서버로로 서포트되어 있지 않을 가능성이 있습니다. 우선,application/config/config.php 파일을 열어,URI Protocol 의 정보를 쓰고 있는 부분을 찾습니다.일련의 대체 방법 [ 역주: 쿼리 문자열을 이용하는 방법 ] 을 시험해 보는 것을 추천합니다.시험해 봐도 실행되지 않는 경우에는,CodeIgniter 의 시스템으로,URL 에 의문 부호를 강제적으로 부가시키도록 .. 2008. 6. 30.
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 [출처] 자료수집|작성자 행복나눔 2008. 6. 30.
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.. 2008. 6. 30.
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 의 모든 메소드에서 객체를 사용.. 2008. 6. 30.
자신만의 라이브러리 만들기 - 라이브러리 만들기 우리는 보통 라이브러리를 사용할때 CodeIgniter에서 제공하는 라이브러리만 사용해왔습니다... 하지만 자신만의 라이브러리를 만들어서 CodeIgniter 에서 사용할수 있습니다.. 대부분 application/libraries 폴더안에 라이브러리 파일을 만들게 됩니다.. CodeIgniter는 당신의 라이브러리에서 CodeIgniter 라이브러리를 확장하는것을 허용합니다. 요약하겠습니다.. *당신은 새로운 라이브러리를 완벽하게 만들수 있습니다. *당신은 CodeIgniter 라이브러리를 확장할수 있습니다. *당신은 CodeIgniter 라이브러리를 교체할수 있습니다.. 이제 하나하나 자세히 알아보겠습니다.. Note: 데이터베이스 클래스는 당신이 만드는 클래스에서 확장되거나 교.. 2008. 6. 30.
CodeIgniter 에서 객체를 수동으로 생성해서 사용하기 CodeIgniter 에서 객체를 수동으로 생성해서 사용하기 CodeIgniter 에서는 라이브러리나 컨트롤을 읽어들일때 자동으로 클래스를 할당하게 되므로 실제로 배열에 객체 데이터를 담을 수 없다. 이때 다음과 같은 파일을 만들고 쓰면 잘 된다. application/system/libraries 디렉토리 밑에 beans.php 파일을 아래와 같이 만든다. <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class beans { /** * 빈즈 이름 * * @var string */ var $beans_name; /** * 빈즈 파일을 읽어들일 기본 경로 * * @var string */ var $load_dir; fun.. 2008. 6. 30.