12.10
php
CGI622
Note
CGI622 did not leave a note
CGI622 did not leave a note
- Hey Matt,
- Thanks for the fast response.
- Updating line 51 in the Asset.php was one of the first things I've done. Separating the addition of files did not make any difference.
- However, changing debug from 2 or 1 to 0 yielded a blank page with only the page title displayed (body part is empty)!!!
- I thought the problem might have to do with Google Maps, so I tried your method with a different page that doesn't call or make use of the Google Maps API,
- I placed the following lines in the Header section of the layout:
- <?php ($javascript->link('jquery/jquery-1.1.4.pack.js',false)); ?>
- <?php ($javascript->link('jquery/jquery.lavalamp.js',false)); ?>
- <?php ($javascript->link('jquery/jqModal.js',false)); ?>
- <?php $javascript->codeBlock(' var $j = jQuery.noConflict();'); ?>
- <?php ($javascript->link('prototype/prototype.js',false));?>
- <?php ($javascript->link('search.js',false)); ?>
- and unfortunately, no JS files were included in the header, and the page still is blank (debug is still set to 0)
- And then, I tried the following:
- <?php e($javascript->link('jquery/jquery-1.1.4.pack.js',false)); ?>
- <?php e($javascript->link('jquery/jquery.lavalamp.js',false)); ?>
- <?php e($javascript->link('jquery/jqModal.js',false)); ?>
- <?php e($javascript->link('prototype/prototype.js',false));?>
- <?php e($javascript->link('search.js',false)); ?>
- and only var $j = jQuery.noConflict();'); was outputted in the header !!
- When changing the code to what I originally had (before trying to make use of Asset.php):
- <?php e($javascript->link('jquery/jquery.lavalamp.js')); ?>
- <?php e($javascript->link(array('jquery/jqModal.js'))); ?>
- <?php echo $javascript->codeBlock(' var $j = jQuery.noConflict();'); ?>
- <?php e($javascript->link(('forms.js')));?>
- <?php e($javascript->link('prototype/prototype.js'));?>
- <?php e($javascript->link('search.js')); ?>
- <?php $asset->scripts_for_layout(); ?>
- The page worked perfectly fine, and everything was displayed correctly. This is how I left it for now. The JS files are not merged, nor minified, and I didn't manage to get the helper to work.
Parsed in 0.121 seconds, using GeSHi 1.0.7.14