Skip to content

Commit

Permalink
Allow Cell name containing "Cell"
Browse files Browse the repository at this point in the history
i.e. CellotapesCell doesn't work at the moment
  • Loading branch information
MarkusDl committed Mar 10, 2015
1 parent 7ecd991 commit 0bcd72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Cell.php
Expand Up @@ -180,7 +180,7 @@ public function render($template = null)
$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 {
Expand Down

0 comments on commit 0bcd72c

Please sign in to comment.