Using Zend Framework missing CSS completion

Hello Everybody,

I currently am working with a decently large application that uses Zend Framework using an MVC pattern to run an ecommerce platform with a Smarty templating engine that intelligently includes certain css files from our www/css directory based on which page you are on in the application.

I have some css completion in my controller php files but I am missing css class completion in my tpl files, I'm wondering if I can setup some configuration files or simple rules to tell PhpStorm which css files are available to all templates / webpages and which files are accessible only in a specific subdirectory.

For example, if I am editing code in the www/foo directory I only want it to see css classes from www/css/(style.css|style_ie.css|foo.css|foo_ie.css)

Thanks much, I've really enjoyed using this software so far and I'm glad to finally get involved with this community.

Sincerely,
Matt

5 comments
Avatar
Eugene Kudelevsky
Comment actions Permalink

Hello, Matt

Currently we don't have such feature. We have an issue for it http://youtrack.jetbrains.net/issue/WI-1125. Please, vote

0
Comment actions Permalink

Thanks Eugene,

In the meanwhile is there an easy way to get PhpStorm to recognize all css files for code completion or finding declarations?

Matt

0
Comment actions Permalink

By default, all css files in project should be recognized (particularly in TPL files). If it doesn't work for you, it is a bug. Please, report it to our tracker and attach tpl file.

0
Comment actions Permalink

Hi Eugene,

I was able to get some css completion by marking my css directory as a resource root however many of my existing css classes are not available.

Matt

0
Comment actions Permalink

@Matt Please, attach sample tpl and css files.

0

Please sign in to leave a comment.