일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 |
30 | 31 |
- SeLinux
- tomcat
- ajax
- 이클립스
- Android
- File
- laravel
- CentOS
- curl
- jquery
- 정규식
- 리눅스
- Linux
- input
- error
- 안드로이드
- NetBeans
- java
- properties
- 톰캣
- html
- javascript
- Spring
- MySQL
- JSON
- larravel
- php
- junit
- 와일드카드
- DB
- Today
- Total
목록laravel (16)
합쭈기 programming
Response::download 시 한글 파일명 에러 이전 된 파일명이 원본 그대로라 문제가 생겼다. vendor > symfony > http-foundation 에 ResponseHeaderBag 클래스의 makeDisposition 함수에서 문제가 생긴다. 아래의 ascii 파일 이름 검증하는 부분을 주석처리해서 해결. if (!preg_match('/^[\x20-\x7e]*$/', $filenameFallback)) { throw new \InvalidArgumentException('The filename fallback must only contain ASCII characters.');}
{!!$list->appends(['searchType' => Input::get('searchType'), 'searchKeyword' => Input::get('searchKeyword')])->render()!!} appends는 페이징 시 검색 조건이다
whereRaw ('field = password(?)', array($pw))이런식으로 쓰던가where('field', '=', DB::raw('password($pw)')) 요런식으로 쓴다.
기본적으로 이녀석 같이 보내야됨 {!! Form::token() !!} 이렇게 하시면 자동으로 input hidden 태그와 함께 만들어주고자동으로 csrf_token을 추가해주는 방법은 form을 아래와 같이 열면 된다. {!! Form::open(options..) !!}{!! Form::close() !!}
router에 아래 내용 추가하면 모든 쿼리 출력 Event::listen('illuminate.query', function($query){var_dump("query : " . $query);}); 개별 쿼리는 DB::getQueryLog() 를 사용
퍼블리싱 패키지를 composer로 추가하는 것은 http://xpressengine.github.io/Composer-korean-docs/이곳에 나와 있다. 한국어 버전 composer document 이다. 퍼블리싱 패키지를 추가하는 것은 문제가 아닌데 문제는 사내에서 관리되는 모듈을 오픈시킬수는 없는 노릇! 그럼 공개되지 않는 패키지는 어떻게 composer로 autoload 할 것인가가 관건이었다. 해보니 생각보다 간단했다. 먼저 추가할 패키지를 만들었다. 패키지를 es로 하고 controller.php는 app > http > conrollers에서 copy 했다.view도 resource > views에서 copy route를 위한 provider를 app > providers에서 copy ..
composer 설치 후엔 경로 > composer create-project laravel/laravel {프로젝트명} {버전} ex) composer create-project laravel/laravel hellow 4.1.* 요런식이면 laravel framework가 자동으로 구성됨 netbeans IDE 설치 - https://netbeans.org/features/index.html laravel이 인식 안되면 netbeans laravel plugin download - http://plugins.netbeans.org/plugin/58448/laravel-quebra-galhonetbeans에서 Tools > Plugins에 Downloaded 탭에서 다운받은 nbm 플러그인 파일을 in..
회사에서 asp-> php로 전향하기 위해 Laravel과 코드이그나이터 중 무엇을 할까 고민중에 laravel을 선택했다.내가 하던것이 spring쪽이라서 객체지향적인 부분과 디버깅 부분에 중점을 뒀다. IDE의 선택이 문제였는데 Netbeans is probably the most professional one here, it’s free and open-source (and financed by Oracle btw).CodeLobster is small and quick, a good choice for beginners. There’s a free version, but you can buy upgrades to add more (professional) features, totally worth..