Changeset 5813
- Timestamp:
- 11/02/07 16:46:14 (10 months ago)
- Files:
-
- trunk/lib/action/sfAction.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/action/sfAction.class.php
r5493 r5813 409 409 * @param string Template name 410 410 */ 411 public function setTemplate($name )411 public function setTemplate($name, $module = null) 412 412 { 413 413 if (sfConfig::get('sf_logging_enabled')) 414 414 { 415 $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Change template to "%s"', $name)))); 415 $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Change template to "%s/%s"', is_null($module) ? 'CURRENT' : $module, $name)))); 416 } 417 418 if (!is_null($module)) 419 { 420 $name = sfConfig::get('sf_app_dir').'/modules/'.$module.'/templates/'.$name; 416 421 } 417 422