Browse Source

Merge pull request #6046 from mdlouhy/patch-12

Allow Cell name containing "Cell"
Mark Story 11 years ago
parent
commit
65bc1431f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/View/Cell.php

+ 1 - 1
src/View/Cell.php

@@ -180,7 +180,7 @@ abstract class Cell
         $render = function () use ($template) {
             $className = explode('\\', get_class($this));
             $className = array_pop($className);
-            $name = substr($className, 0, strpos($className, 'Cell'));
+            $name = substr($className, 0, strrpos($className, 'Cell'));
             $this->View->subDir = 'Cell' . DS . $name;
 
             try {