Help understanding this error message

Permalink
I was trying to apply a custom template to my auto_nav and now the auto_nav does not appear instead I keep getting this error message


Warning: include(D:\xampp\htdocs\natu\concrete\config/../blocks/autonav/templates\custom_view.php) [function.include]: failed to open stream: No such file or directory in D:\xampp\htdocs\natu\concrete\libraries\block_view.php on line 265

Warning: include() [function.include]: Failed opening 'D:\xampp\htdocs\natu\concrete\config/../blocks/autonav/templates\custom_view.php' for inclusion (include_path='.;D:\xampp\php\pear\;D:/xampp/htdocs/natu/libraries/3rdparty;D:\xampp\htdocs\natu\concrete\config/../libraries/3rdparty') in D:\xampp\htdocs\natu\concrete\libraries\block_view.php on line 265

I checked line 265 in the block_view.php and I can only see this include($template);

Would appreciate if someone could explain whats going wrong here that is causing the custom template for the auto_nav block from being applied.

 
Pritam replied on at Permalink Reply
Firstly, there is one thing that I hadn't mentioned in my above post, that I was attempting to use the auto_nav block within the C5 theme i was using, to do this i had added this code

<div class="menu">
        <?php
    $bt_main = BlockType::getByHandle('autonav');
    $bt_main->controller->displayPages = 'top';
    $bt_main->controller->orderBy = 'display_asc';                    
    $bt_main->controller->displaySubPages = 'none';                    
    $bt_main->render('templates/view');
        ?>
        </div>


The error message in the above post was generated because it wasn't able to find the view.php file, so after browsing around the forum, i tried changing the

$bt_main->render('templates/view');


to

$bt_main->render('view');


And the auto_nav started showing up, however it was applying the default styling instead of the auto_nav template that I wanted to apply.

Now I need to find out why my custom template is not being applied.
Mnkras replied on at Permalink Reply
Mnkras
i think it has to be /themename/templates/view

but im not sure