Dwoo variable not rendering in custom field
I have a custom field on a layout I created and in that field i'm trying to use a php variable in the dwoo syntax like this
A Collection of Our {$catName} Patterns.
In my view i'm using the fuel_var function and when I view my page, it prints out exactly what I have in the custom field. Why does it not use the php variable?
Comments
$page_init = array('location' => 'my_page'); $this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init); $this->fuel_page->add_variables($vars); $this->fuel_page->render();
$vars['catName'] = $this->patterns_access_model->get_category_by_id($categoryId); // use Fuel_page to render so it will grab all opt-in variables and do any necessary parsing $page_init = array('location' => 'patterns', 'render_mode' => 'cms'); $this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init); $this->fuel_page->add_variables($vars); $this->fuel_page->render();