Welcome Guest, Not a member yet? Register   Sign In
how can i write a path in a view??

in my controller i do this:

$this->data['imgpath'] = $_FILES['name']['name'];

and in my view this:

<div id="result">&lt;?=$imgpath?&gt;</div>

this leads to an no found error, which i can find in the error log.

How can i pass a path to my view??

aaah set it into quotes and hurraay:

$this->data['imgpath'] = '"'.$_FILES['name']['name'].'"';

Theme © iAndrew 2016 - Forum software by © MyBB