Browse Source

Allow Cell name containing "Cell"

i.e. CellotapesCell doesn't work at the moment
MarkusDl 11 years ago
parent
commit
0bcd72c3b7
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 {