본문 바로가기
반응형

Framework52

[Laravel] 라라벨 디렉토리 구조 (Laravel Directory Structure) 프레임워크로서는 JSP를 하면서 스프링 프레임워크를 처음 접했고, 두번째로 접하게 된게 라라벨이다. 스프링을 처음 접했을 때 디렉토리 구조가 정말 복잡하게 되어 있어서 너무 힘들었다.. 계속하다보니 사실 복잡한게 아니였다.. 스프링을 한번 나름대로 깊게 봤다고 생각하기 때문에 라라벨을 접했을 때도 편하게 공부를 시작했다. 언어가 달라도 같은 웹서버의 개념이라고 생각하니 크게 어렵진 않았고 재밌게 하는 중이다. 아래는 디렉토리 구조이다. 크게 10개의 디렉토리로 이루어져 있다. app - 라라벨로 개발하는 애플리케이션의 소스 코드가 위치 하는 곳으로 route 설정, Model, Controller가 존재 한다. 나름 Controller가 존재하는 디렉토리기 때문에 가장 많이 사용하고 중요한 곳이다. Sp.. 2019. 4. 11.
[Laravel] Class 'App\Http\Controllers\Model' FatalThrowable Error https://wiki.modernpug.org/display/LAR/questions/10092627/%EB%9D%BC%EB%9D%BC%EB%B2%A8-%EC%BB%A8%ED%8A%B8%EB%A1%A4%EB%9F%AC%EC%97%90%EC%84%9C-%EB%AA%A8%EB%8D%B8-%EC%B0%B8%EC%A1%B0%EC%8B%9C-not-found [라라벨] 컨트롤러에서 모델 참조시 Not found - laravel - Modern PHP User Group Confluence wiki.modernpug.org ORM 사용시, 모델 매핑하려고 할때 해당 경로에 Model php 파일을 찾을 수 없어서 발생하는 에러. Controller 파일에 모델을 사용할 수 있게 use App\{모델명}; 을 입.. 2019. 4. 9.
[Laravel] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes ERROR 발생 시 https://laravel-news.com/laravel-5-4-key-too-long-error Laravel 5.4: Specified key was too long error Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything. For t laravel-news.com 참고!! 2019. 4. 5.
[Laravel] php command 사용하기 https://stackoverflow.com/questions/26193314/could-not-open-input-file-artisan Could not open input file: artisan When trying to create a new laravel project, The following error appears on the CLI: Could not open input file: artisan Script php artisan clear-compiled handling the post-install-cmd event stackoverflow.com 2019. 3. 27.
[Laravel] 라라벨 시작하기 1. Composer 설치Composer은 PHP용 패키지 관리자 이다. 2. Laravel installer 설치command 창을 열어서 compser global require "laravel/installer" 입력 해준다. 3. 프로젝트 생성command창에서 입력한다. 자기 입맛대로 원하는 위치로 이동 후 입력해주면 된다. 시간이 좀 오래 걸림.laravel new 프로젝트 이름 4. 웹 서버의 DocumentRoot 설정Laravel 프로젝트에서 웹 서버의 Root로 설정 되어야 하는 경로는 "/public" 디렉토리이다.php의 httpd.conf 파일의 DocumentRoot 디렉토리를 ~~~~/public으로 설정해 준다. - xampp 는 최소 버전이 7.1 되야함 7.1 버전이 안되.. 2019. 2. 22.
[SpringFramework] RESTFul Web Service Example - GET, POST, PUT, DELETE 예제 jQuery Ajax 비동기 방식을 통해 MVC CRUD방식의 예제를 다뤄볼것이다. 1. GET(SELECT) 1). 파라미터가없는 단순 SELECT //@RestController @RequestMapping(value="/register",method=RequestMethod.GET) public List register() throws Exception { return mservice.selectMember(); } //Mybatis SELECT id from user_info2; //Client function test() { $.ajax({ type : 'GET', url : '/won/register', success : function(response) { alert("CONTROLLER R.. 2018. 8. 6.
반응형