Welcome Guest, Not a member yet? Register   Sign In
Carabiner 1.4: Asset Management Library

[eluser]c2n[/eluser]
Hey I am trying to figure out why when I set DEV to false, my files do not show up in the cache, I gave the folder r/w permissions but it is not putting them there.
Any ideas?

Thanks

[eluser]tonydewan[/eluser]
What version of Carabiner are you using? LAMP, WAMP, or MAMP? Make sure your log level is set to 4. Are there there any logged errors from Carabiner? Every message logged by Carabiner is prefixed with 'Carabiner:', so you should be able to find them easily. Let me know what, if any, errors are logged.

[eluser]c2n[/eluser]
Where is the log?
I am using Ubuntu Server directly.
Version 1.4.5- the latest

[eluser]tonydewan[/eluser]
CodeIgniter logs are located:
System->Logs->log-yyyy-mm-dd.php

Log level is set in application/config/config.php around line 176

[eluser]c2n[/eluser]
Here is the line
ERROR - 2009-12-07 11:57:34 --> Carabiner: There was an error writing cache file 000000000086c596a73cf3add051adb3c03466f552.css to /var/www/index.phppublic/


Now I follwed your instructions, so I see no matter what it's not breaking

[eluser]c2n[/eluser]
I know FCPATH was a recent change, but the folder I am pointing to, is outside of the CI app/sys folders.

[eluser]c2n[/eluser]
Fixed
$this->CI->input->server('DOCUMENT_ROOT').DIRECTORY_SEPARATOR instead of FCPATH works for me

[eluser]tonydewan[/eluser]
So you have it working then?

Quote:I know FCPATH was a recent change
What does this mean? A recent Carabiner change, or a recent CodeIgniter change? Or Neither?

[eluser]c2n[/eluser]
I'm sorry I was reading the comments on this, and it seems prior to version 1.4.5 of carabiner it was not FCPATH, but the method I just changed it to works. Thanks, so far this is a very cool add-on.

[eluser]chefnelone[/eluser]
Hello

I need some help, since I can't get it working. I mean I got no error but nothing at all. The asset isn't added.

1- I autoloaded the libraries:
Code:
$autoload['libraries'] = array('database', 'carabiner', 'jsmin', 'cssmin');

2- Set the paths:
(the assets folder is in: ci/assets/)
(the application folder is in: ci/application/)
Code:
$config['script_dir'] = '../../assets/scripts/';
$config['style_dir'] = '../../assets/styles/';
$config['cache_dir'] = '../../assets/cache/';

3- And then, In my view I added a asset with:
(I have javascript.js inside assets/scripts/ )
Code:
<?php $this->carabiner->js('javascript.js');?>

But nothing...
Where is my mistake??




Theme © iAndrew 2016 - Forum software by © MyBB