MrAnchovy / Kohana_Smarty3

Integration of Smarty v3 with the Kohana PHP Framework
25 stars 13 forks source link

Kohana Route engine available. #13

Closed Fedcomp closed 10 years ago

Fedcomp commented 12 years ago

This module seems not available access to kohana route engine. What i mean? in-template access to make route paths

bootstrap.php

Route::set('default', '(<controller>(/<action>(/<id>)))')
    ->defaults(array(
        'controller' => 'main',
        'action'     => 'index',
    ));

somewhere in .tpl {route name='default' controller='somecontroller' action='notindex'}

can you add this? it will be very usefull.

MrAnchovy commented 10 years ago

This is exactly the opposite of why we have template engines - templates are only concerned with presenting information that is provided to them by a controller. Templates must NOT decide for themselves that they want some information and go and get it.