Problems with page rendering
Hi
I created a module inspired by the blog module in the 1.0 version
But when I try to render a view, I just have the text of my view that is shown in the page
At the moment, this is index method of my controller :
$vars['layout'] = 'main';
$vars['title'] = 'Formation;
$this->fuel->pages->render('formation', $vars);
And when I go to my module, I just see 'formation' written
What did I do wrong ?
Ko
Comments
modules/
blog/
formation/
- config
- controllers
- models
- views
-- themes
--- default
---- _blocks
formation.php
--- _layouts
formation.php
Header and footer are in application/views/_blocks
$this->fuel->pages->render('formation', $vars, array('view_module' => 'formation'));
I tried to echo the view and render it, but it just display the content of this view and it's not wrapped into the cms
$this->fuel->pages->render('formation', $vars, array('render_mode' => 'cms'));
However, I actually meet problems with foreign characters in admin interface, it seems like fuel doesn't accepts the french "é à ê" etc. Is there issues for that ?
http://stackoverflow.com/questions/8909442/cannot-submit-special-characters-in-codeigniter
I'm ending my project this week, but I still have a bug conerning the styles added to content with CKEditor
I did a module, where i just can add few styles (bold, italic, underline). When I add a color, it's not saved, same for the size of text, emoticons ...
I can do it in the pages or blog module, it works perfectly. Do you have ideas about that ?
'sanitize_input' => array('template','php'),