$staff = Model_Staff::find()->where(\DB::expr('REPLACE(LOWER(CONCAT(title,"-",job_title))," ","-")'),$title)->get_one(); if( !$staff ) \Request::show_404(); $view = \View::factory('staff/view'); $view->staff = $staff; $view->set('staffarticle','<p>hello joe</p>',false);
<p>hello joe</p>for
$staff->articleit escapes the data from the DB which I've told it not to do. Any ideas?
$view->staff = $staff;escapes the data in the object and then transfers the object to the view rather than transferring byval to the view and then escaping. Switch the last two lines around and it works
It looks like you're new here. If you want to get involved, click one of these buttons!