I have a smarty-test01
smarty project.
In my templates/index2.tpl
:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>dialog</title>
<!--jquery-->
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="../libs/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js"></script> // you see there I import the jquery-ui.
<!--Css-->
<link rel="stylesheet" href="../libs/jquery-ui-1.9.2.custom/css/base/jquery-ui-1.9.2.custom.min.css" />
<script language="javascript" type="text/javascript">
...
I imported the jquery-ui and jquery-ui-css.
but when I access the http://localhost:63342/smarty-test01/index2.php
, the browser says Not found the jquery-ui and its stylesheet. I am sure the relative path is correct.
The directories tree:
.
├── CONSTANTS.php
├── cache
├── configs
│ └── constants.php
├── htdocs
│ ├── index.php
│ └── index2.php
├── index.php
├── index2.php
├── libs
│ └── jquery-ui-1.9.2.custom
│ ├── css
│ │ └── base
...
│ │ └── ui.widget.jquery.json
│ ├── index.html
│ └── js
│ ├── jquery-1.8.3.js
│ ├── jquery-ui-1.9.2.custom.js
│ └── jquery-ui-1.9.2.custom.min.js
├── smarty.php
├── templates
│ ├── index.tpl
│ └── index2.tpl
└── templates_c
├── 8b747b0f978b4e5206c429d91816c400edfe7ec5_0.file.index2.tpl.php
├── 976090f2d104294efca669338810dea6bf8e1484_2.file.debug.tpl.php
└── aac75150379166297487ae8ee5a1de73ee3e89c7_0.file.index.tpl.php
EDIT-1
Because in the phpStorm, the editor do not shows that's a wrong path, so this is strange. I also tried the absolute path.
Do you have any default CSS file in the directory? If so, then remove or rename it and see if you get the expected result.
Or alternatively you can try this:
/../libs/jquery-ui-1.9.2.custom/css/base/jquery-ui-1.9.2.custom.min.css"