Development

Changeset 7640

You must first sign up to be able to contribute.

Changeset 7640

Show
Ignore:
Timestamp:
02/27/08 22:55:21 (1 year ago)
Author:
fabien
Message:

fixed custom view when the class does not exist

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/controller/sfController.class.php

    r7614 r7640  
    376376    { 
    377377      // view class (as configured in module.yml or defined in action) 
    378       $viewClassName = sfConfig::get('mod_'.strtolower($moduleName).'_view_class'); 
    379       $class = sfAutoload::getInstance()->getClassPath($viewClassName.'View') ? $viewClassName.'View' : 'sfPHPView'; 
     378      $class = sfConfig::get('mod_'.strtolower($moduleName).'_view_class', 'sfPHP').'View'; 
    380379    } 
    381380 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.