[eluser]Jareish[/eluser]
Hi,
The parse_html function works
The getFile() doesn't:
the input:
Code:
$this->zip->add_data('js/jquery-1.4.2.min.js', $this->getFile(base_url().'template/jquery/jquery-1.4.2.min.js'));
the error:
Code:
Message: file_get_contents(http://www.talentstoolkit.com/cms/ci/template/jquery/jquery-1.4.2.min.js) [function.file-get-contents]: failed to open stream: Connection refused
I could use parse_html() to parse the javascript and avoid file_get_contents. But I get a
Code:
Warning: Unexpected character in input: '' (ASCII=11) state=1 in [..]
if I try flash.
Alsoo it seems I can't use file_get_contents on something that resides in ci application folder. Which would mean, part of my template would be in build/view and other part (images/javascript/flash) would be located outside CI in a public folder. If there is no other (quick) way, Ill settle for that, as long as there is a solution for this problem