Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
manage header
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
manage header
El Forum
Guest
#1
04-21-2008, 03:13 AM
[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???????????????????????????????????????
El Forum
Guest
#2
04-21-2008, 03:26 AM
[eluser]xwero[/eluser]
Just add it to your code, there should be no problem with it.
El Forum
Guest
#3
04-21-2008, 03:32 AM
[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 .....
El Forum
Guest
#4
04-21-2008, 03:34 AM
[eluser]xwero[/eluser]
You have to add it to your controller method. Why do you add it to your view file?
El Forum
Guest
#5
04-21-2008, 03:42 AM
[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);
El Forum
Guest
#6
04-21-2008, 03:56 AM
[eluser]xwero[/eluser]
the OutputImage method is something you wrote yourself?
El Forum
Guest
#7
04-21-2008, 04:55 AM
[eluser]manash007[/eluser]
OutputImage method of myself
El Forum
Guest
#8
04-21-2008, 09:36 AM
[eluser]Jamie Rumbelow[/eluser]
Add it as a display_overide hook?
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB