Issue 500: move default template routing into the routing system
http://code.google.com/p/qubit-toolkit/issues/detail?id=500

Comment #3 by vangarderen.peter:
According to the Symfony manual,
http://www.symfony-project.org/book/1_1/09-Links-and-the-Routing-System#Setting%20Default%20Values

It should be possible to use the following in an action to assign a default  
routing
parameter
$this->context->getRouting()->setDefaultParameter('template', 'isad');

However, I am not sure whether this technique is actually working.

For one, 'template: isad' does not appear in the parameter holder list that  
is
viewable via the _dev environment vars & config view, whereas the 'module'  
and
'action' parameters are.

Assigning it to the request does make it visible as a request parameter:
$request->setDefaultParameter('template', 'isad');

However, I assume this is assigning the parameter to the request object and  
not to
the routing class to allow it to build routing rules off of it.

So my next step, before I eliminate all the setTemplate() calls and replace  
them with
routing default parameters, is to discover the correct technique to set the  
default
routing parameter.


Issue attribute updates:
        Owner: jack.bates

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/qubit-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to