| Page 1 of 1 | [ 9 posts ] |
|
I'm trying to integrate phploader into our ZF application. Everything works fine until I turn on the local combo loader, and it doesn't load any of my locally defined JS/CSS.
Here's the relevant code/implementation: http://openfisma.svn.sourceforge.net/viewvc/openfisma/branches/performance/application/layouts/scripts/layout.phtml?revision=2322&view=markup http://openfisma.svn.sourceforge.net/viewvc/openfisma/branches/performance/library/Fisma/Loader.php?revision=2322&view=markup This is what the output looks like with the local combo loader and local metadata: Code: <script type="text/javascript" src="/phploader/combo.php?2.7.0/build/utilities/utilities.js&2.7.0/build/container/container-min.js&2.7.0/build/json/json-min.js&2.7.0/build/cookie/cookie-min.js&2.7.0/build/menu/menu-min.js&2.7.0/build/button/button-min.js&2.7.0/build/tabview/tabview-min.js&2.7.0/build/calendar/calendar-min.js&2.7.0/build/paginator/paginator-min.js&2.7.0/build/datasource/datasource-min.js&2.7.0/build/datatable/datatable-min.js&2.7.0/build/selector/selector-min.js&2.7.0/build/treeview/treeview-min.js&2.7.0/build/uploader/uploader.js&2.7.0/build/&2.7.0/build/&2.7.0/build/&2.7.0/build/&2.7.0/build/&2.7.0/build/&2.7.0/build/"></script> <link rel="stylesheet" type="text/css" href="/phploader/combo.php?2.7.0/build/reset-fonts-grids/reset-fonts-grids.css&2.7.0/build/container/assets/skins/sam/container.css&2.7.0/build/menu/assets/skins/sam/menu.css&2.7.0/build/button/assets/skins/sam/button.css&2.7.0/build/tabview/assets/skins/sam/tabview.css&2.7.0/build/calendar/assets/skins/sam/calendar.css&2.7.0/build/paginator/assets/skins/sam/paginator.css&2.7.0/build/datatable/assets/skins/sam/datatable.css&2.7.0/build/treeview/assets/skins/sam/treeview.css&2.7.0/build/&2.7.0/build/" /> And here it is with combo loading disabled: Code: <script type="text/javascript" src="/lib/2.7.0/build/utilities/utilities.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/container/container-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/json/json-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/cookie/cookie-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/menu/menu-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/button/button-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/tabview/tabview-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/calendar/calendar-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/paginator/paginator-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/datasource/datasource-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/datatable/datatable-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/selector/selector-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/treeview/treeview-min.js"></script> <script type="text/javascript" src="/lib/2.7.0/build/uploader/uploader.js"></script> <script type="text/javascript" src="/javascripts/fisma.js"></script> <script type="text/javascript" src="/javascripts/TreeTable.js"></script> <script type="text/javascript" src="/javascripts/CheckboxTree.js"></script> <script type="text/javascript" src="/javascripts/CheckboxTree.js"></script> <script type="text/javascript" src="/javascripts/help.js"></script> <script type="text/javascript" src="/javascripts/selectallselectnone.js"></script> <script type="text/javascript" src="/javascripts/deleteconfirm.js"></script> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/container/assets/skins/sam/container.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/menu/assets/skins/sam/menu.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/button/assets/skins/sam/button.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/tabview/assets/skins/sam/tabview.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/calendar/assets/skins/sam/calendar.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/paginator/assets/skins/sam/paginator.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/datatable/assets/skins/sam/datatable.css" /> <link rel="stylesheet" type="text/css" href="/lib/2.7.0/build/treeview/assets/skins/sam/treeview.css" /> <link rel="stylesheet" type="text/css" href="/stylesheets/main.css" /> <link rel="stylesheet" type="text/css" href="/stylesheets/TreeTable.css" /> Any help would be appreciated. Thanks. Josh |
|
Also, I just wanted to note that the combo loader works fine if I just use YUI files. So the combo loader atleast works in that instance.
|
|
Hello Josh,
I wrote the local combo handler as a slimmed down version of the existing Yahoo! combo service (http://developer.yahoo.com/yui/articles/hosting/?#combo). It was originally intended just to mimic the behavior provided there and as such does not support the loading of custom files. That being said it shouldn't be too hard to add this. I'll look into it for a future version and put some code up here once I have working prototype. Chad |
|
Cool. I took a look at addToCombo() and it looks like the problem is just one of paths. All of the modules are definitely getting passed through there (which is why there's some neat things in the query string just showing the YUI base path).
I'll take a stab at it, if I get it working I'll submit a patch. |
|
Sounds great, keep us posted.
|
Christoph Feddersen
|
Hi Josh,
I'm wondering if you succeeded with your plan? I need that feature as well. My understanding is that combo.php needs some modifcation as well, because you need to pass the $customConfig array to the YAHOO_util_Loader constructor. |
|
It needed more tweaking than I had time to do.
I ended up using PHP loader for YUI, and then use ant to minify and combine my local CSS and JS. |
|
The quick fix btw, would probably be generating a static metadata file for your own includes ...
|
Christoph Feddersen
|
Thanks for the hint! I'll probably just do it that way for now.
|
| Page 1 of 1 | [ 9 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group