저는 jQuery-ui datepicker로 작업하고 있지만 이미지와 경로에 문제가 있습니다. 이것은 내가 내 CSS를 링크하는 방법입니다symfony2 jquery ui datepicker 이미지
{% stylesheets '@BackendBundle/Resources/public/css/bootstrap.min.css'
'@BackendBundle/Resources/public/css/bootstrap-responsive.min.css'
'@HotelBundle/Resources/public/css/ui-lightness/jquery-ui-1.8.20.custom.css'
'@HotelBundle/Resources/public/css/encargado.css'
output='css/encargado.css' %}
<link href="{{ asset_url }}" rel="stylesheet" type="text/css" />
{% endstylesheets %}
{% endblock %}
{% block javascripts %}
{% javascripts '@BackendBundle/Resources/public/js/jquery-1.7.2.min.js'
'@BackendBundle/Resources/public/js/modernizr-2.5.3-respond-1.1.0.min.js'
'@HotelBundle/Resources/public/js/jquery-ui-1.8.20.custom.min.js'
output='js/backend.js' %}
<script src="{{ asset_url }}" type="text/javascript"></script>
{% endjavascripts %}
을하고 내가 거기에 내 파일의 CSS 파일을 저장합니다
../src/Gitek/HotelBundle/Resources/public/css/ui-lightness/
- jquery-ui-1.8.20.custom.css
- images/ui-bg_diagonals-thick_18_b81900_40x40.png;ui-bg_diagonals-thick_20_666666_40x40.png ...
내 JS의이 파일 : 그 후
../src/Gitek/HotelBundle/Resources/public/js/jquery-ui-1.8.20.custom.min.css
, 나는 자산을 덤프 php app/console assetic : 오류없이 덤프
또한 자산을 PHP/console로 설치합니다. install web --s ymlink
및 캐시 PHP 응용 프로그램/콘솔 캐시 삭제 :
분명 나는이 모든 짓을 내가보고 내 날짜 선택기로 작업 할 수 있지만, 일부 사진은로드되지 않습니다. 나는 크롬 콘솔에 가면 나는 이러한 오류를 볼 수 있습니다
Failed to load resource: the server responded with a status of 404 (Not Found) http://hotel.local/app_dev.php/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://hotel.local/app_dev.php/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://hotel.local/app_dev.php/css/images/ui-bg_glass_100_f6f6f6_1x400.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://hotel.local/app_dev.php/css/images/ui-icons_ffffff_256x240.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://hotel.local/app_dev.php/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
나는 아마 문제가 CSS 파일하지만 미안 이내 확실하지 경로로 생각합니다.
어떤 도움이 필요합니까?
작동하지만 수동으로 웹/CSS/폴더에 ui-lightness 폴더를 복사해야합니다. Thansks! –
lib를 해킹하는 것은 좋지 않은 생각이며 lib가 업데이트되면 다음 번에 깨질 것입니다. 다른 대답의 cssrewrite 필터가 더 좋습니다. – DEY