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

[eluser]helle[/eluser]
in my controller i do this:

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

and in my view this:

Code:
<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??
#2

[eluser]helle[/eluser]
aaah set it into quotes and hurraay:

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




Theme © iAndrew 2016 - Forum software by © MyBB