/** * Everything is a page * Everything inside is a module */ class Controller_File extends Controller { const TEMPLATE_PATH = 'application/templates/'; public function action_index() { //get path $template_file = ORM::factory('templatefile') -> where('name', '=', $this -> request -> param('name')) -> find(); $this->request->headers('Content-Type', 'text/css'); } } // 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ć?