Changeset 25012
- Timestamp:
- 02/04/10 14:38:04 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgardmvc/midgardmvc_core/services/dispatcher/manual.php
r24958 r25012 62 62 { 63 63 $route_definitions = $this->get_routes(); 64 if (!isset($route_definitions[$this->midgardmvc->context->route_id])) 65 { 66 throw new Exception("Route {$route_id} not defined for component {$this->midgardmvc->context->component}"); 67 } 64 68 65 69 $selected_route_configuration = $route_definitions[$this->midgardmvc->context->route_id]; trunk/midgardmvc/midgardmvc_core/services/templating/midgard.php
r24979 r25012 359 359 // Then initialize the component, so it also goes to template stack 360 360 $this->dispatcher->initialize($request); 361 362 $routes = $this->midgardmvc->configuration->normalize_routes();363 $component_name = $this->midgardmvc->context->component;364 365 if (!isset($routes[$route_id]))366 {367 throw new Exception("Route {$route_id} not defined for component {$component_name}");368 }369 361 370 362 $this->dispatcher->set_route($route_id, $arguments); 371 363 $this->dispatcher->dispatch(); 372 364 365 $component_name = $this->midgardmvc->context->component; 373 366 $data = $this->midgardmvc->context->$component_name; 374 367
