Welcome Guest, Not a member yet? Register   Sign In
[Solved] Website generator
#3

[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


Messages In This Thread
[Solved] Website generator - by El Forum - 11-25-2010, 03:14 AM
[Solved] Website generator - by El Forum - 11-25-2010, 03:25 AM
[Solved] Website generator - by El Forum - 11-25-2010, 03:52 AM
[Solved] Website generator - by El Forum - 11-25-2010, 03:59 AM
[Solved] Website generator - by El Forum - 11-25-2010, 04:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB