[Solar-svn] Revision 2558
pmjones at solarphp.com
pmjones at solarphp.com
Wed Jun 27 16:48:00 CDT 2007
Solar_Controller_Front: [FIX] Method _getPageName() now compares $page directly to $this->_routing keys, instead of massaging $page first. This fixes static routing so that it actually works. ;-)
Thanks, Rodrigo, for discovering this and providing the solution.
fixes #78
Modified: trunk/Solar/Controller/Front.php
===================================================================
--- trunk/Solar/Controller/Front.php 2007-06-27 21:40:06 UTC (rev 2557)
+++ trunk/Solar/Controller/Front.php 2007-06-27 21:48:00 UTC (rev 2558)
@@ -203,13 +203,13 @@
*/
protected function _getPageClass($page)
{
- $page = str_replace('-',' ', $page);
- $page = str_replace(' ', '', ucwords(trim($page)));
if (! empty($this->_routing[$page])) {
// found an explicit route
$class = $this->_routing[$page];
} else {
// no explicit route, try to find a matching class
+ $page = str_replace('-',' ', $page);
+ $page = str_replace(' ', '', ucwords(trim($page)));
$class = $this->_stack->load($page, false);
}
return $class;
More information about the Solar-svn
mailing list