Welcome Guest, Not a member yet? Register   Sign In
manage header
#1

[eluser]manash007[/eluser]
How we can manage this in codeigniter:

header('Content-type: image/jpg');

that is how we can Tell the browser what kind of file is come in, in CI??????
any suggesstion???????????????????????????????????????
#2

[eluser]xwero[/eluser]
Just add it to your code, there should be no problem with it.
#3

[eluser]manash007[/eluser]
i have added in my code but it gives my nothing but the url of this page......
i have added it in my view file .....
#4

[eluser]xwero[/eluser]
You have to add it to your controller method. Why do you add it to your view file?
#5

[eluser]manash007[/eluser]
if i write it in my controller then how i will show my header ,footer,body?
it shoes me nothing but the image ...bcoz of this OutputImage()
$this->OutputImage($img);
$this->ImageDestroy($img);
#6

[eluser]xwero[/eluser]
the OutputImage method is something you wrote yourself?
#7

[eluser]manash007[/eluser]
OutputImage method of myself
#8

[eluser]Jamie Rumbelow[/eluser]
Add it as a display_overide hook?




Theme © iAndrew 2016 - Forum software by © MyBB