K
K
Konstantin2015-01-31 02:55:48
PHP
Konstantin, 2015-01-31 02:55:48

Phpstorm and smarty how to setup css paths?

I have been working in phpstorm for about a month now. Switched after coding in notepad++ I couldn't be happier
. But there was a problem. I have templates for the site, structure:
templates/template/html/ here all tpl files
templates/template/css/ here all css files
templates/template/js/ here all js files
usually when you code html code then phpstorm very cool suggests classes , but it doesn’t tell me ((
all because my index.tpl template file is the main file, it takes css like this:

<link rel="stylesheet" href="/templates/{$settings->theme}/css/bootstrap3.css" type="text/css" media="screen">

how to make phpstorm understand that it is necessary to load styles from this file and prompt them.
and how to make it so that phpstorm also loads the necessary css in child templates?
for example, there is a template main.tpl, order.tpl, mail.tpl they are loaded by index.tpl if necessary

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2015-01-31
@Rikcon

For phpstorm, duplicate the links to the styles for the development time, indicate the path as advised above with a direct link, mark the lines with comments like PHPSTORM_TEMP during deployment, find and delete these lines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question