0

does i realy have to define full url in my application.ini if i want to use jquery local?

resources.jquery.localpath    = "/websitex/public/js/library/jquery/jquery-1.4.2.js"
resources.jquery.ui_localpath = "/websitex/public/js/library/jquery.ui/jquery.ui.js"
resources.jquery.stylesheet   = "/websitex/public/css/jquery.ui/jquery-ui-1.8.7.custom.css"

Or is there something like "APPLICATION_PATH" for the URL?

1 Answer 1

2

You can use APPLICATION_PATH in ini files. Contants are translated to their respective values. But you might need the actual URI address, not the server absolute address. From what I see, the code should be like:

resources.jquery.localpath    = "/js/library/jquery/jquery-1.4.2.js"
resources.jquery.ui_localpath = "/js/library/jquery.ui/jquery.ui.js"
resources.jquery.stylesheet   = "/css/jquery.ui/jquery-ui-1.8.7.custom.css"

Assuming /websitex/public/ is you server's document root.

Sign up to request clarification or add additional context in comments.

1 Comment

then your option is to preppend $this->view->baseUrl() to that, problem is that it can't be done using the ini file...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.