I am trying to get Mary Story's asset Compression plugin working but I get
errors.

 

My default layout.ctp I have:

$this->AssetCompress->addCss('cake.generic', 'styles', '1080');

echo $this->AssetCompress->includeCss();

                                

$this->AssetCompress->addScript('jquery-1.4.2.min','jquery.fancybox-1.3.4.pa
ck');

echo $this->AssetCompress->includeJs();

 

Which produces this HTML

 

<link rel="stylesheet" type="text/css"
href="/css/styles.css?file%5B0%5D=cake.generic
<view-source:http://jobied.com/css/styles.css?file%5B0%5D=cake.generic> " />
<script type="text/javascript"
src="/js/jquery.fancybox-1.3.4.pack.js?file%5B0%5D=jquery-1.4.2.min
<view-source:http://jobied.com/js/jquery.fancybox-1.3.4.pack.js?file%5B0%5D=
jquery-1.4.2.min> "></script>
 
If I click on the css or js files when view source I see :
 
<h2>Missing Controller</h2>
<p class="error">
                    <strong>Error: </strong>
                    <em>JsController</em> could not be found.</p>
<p class="error">
                    <strong>Error: </strong>
                    Create the class <em>JsController</em> below in file:
app/Controller/JsController.php</p>
<pre>
&lt;?php
class JsController extends AppController {
 
}
</pre>
<p class="notice">
                    <strong>Notice: </strong>
                    If you want to customize this error message, create
app/View/Errors/missing_controller.ctp</p>
 
 
Same with the Css, 
 
Followed the setup. Tried 3 times and still get the same error.
 
Using v 2.1.3
 
Any insight would be great.
 
Thanks,
 
Dave

 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to