Ticket #862 (closed enhancement: fixed)
3rd party script easy integration
| Reported by: | dsdenes | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | jelix | Version: | 1.1 |
| Severity: | minor | Keywords: | |
| Cc: | Php version: | ||
| Hosting Provider: | Blocked By: | ||
| Documentation needed: | no | Blocking: |
Description (last modified by laurentj) (diff)
Would be great if integrating any type of 3rd scripts would be easy. There are many times that 3rd application comes with many mixed type file. In a template/controller if we wouldn't care about initilaizing the parts of the 3rd script separately (js, css, images), should initialize the script with one command.
For example a 3rd application: foo
- lib/3rd/foo/bar1.js
- lib/3rd/foo/bar2.js
- lib/3rd/foo/bar.css
- lib/3rd/foo/bar.php
- lib/3rd/foo/_init.php
_init.php should see the response object and should call the corresponding methods like addCSSLink, addJSLink, require_once()
jelix/utils/j3rdParty.class.php::init3rd
The php requirement should go into a new namespace.
jtpl_meta_html_html::3rd => j3rdParty::init3rd
Change History
Note: See
TracTickets for help on using
tickets.
