Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Kohana]Headers Css
PiotrekM
post 11.08.2011, 18:40:37
Post #1





Grupa: Zarejestrowani
Postów: 130
Pomógł: 6
Dołączył: 20.12.2009

Ostrzeżenie: (0%)
-----


Mam dziwny problem, gdyż nie mogę wysłać nagłówków.

  1. <?php defined('SYSPATH') or die('No direct script access.');
  2. /**
  3.  * Everything is a page
  4.  * Everything inside is a module
  5.  */
  6.  
  7. class Controller_File extends Controller
  8. {
  9. const TEMPLATE_PATH = 'application/templates/';
  10. public function action_index()
  11. {
  12. //get path
  13. $template_file = ORM::factory('templatefile') -> where('name', '=', $this -> request -> param('name')) -> find();
  14.  
  15. $this->request->headers('Content-Type', 'text/css');
  16.  
  17. echo $template_file -> content;
  18. }
  19.  
  20. } // End Welcome


to mój controller... próbowałem też tradycyjnym sposobem i nic...
kod wypluwa w plain texcie

pierwszy raz się z czymś takim spotykam... może to wina nowej kohany 3.2?

edit: to wina kohany, bo w osobnym pliku jest ok. co zrobić?

Ten post edytował PiotrekM 11.08.2011, 18:44:24
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 15:32