InvalidArgumentException

Component or subcomponent name must not be empty string.

Source file

File: /var/www/kreatura/data/www/watchdeluxe.sk/www/libs/Nette/ComponentContainer.php   Line: 138

Line 131:                $a strpos($nameself::NAME_SEPARATOR);
Line 132:                if ($a !== FALSE) {
Line 133:                    $ext = (string) substr($name$a 1);
Line 134:                    $name substr($name0$a);
Line 135:                }
Line 136:    
Line 137:                if ($name === '') {
Line 138:                    throw new InvalidArgumentException("Component or subcomponent name must not be empty string.");
Line 139:                }
Line 140:            }
Line 141:    
Line 142:            if (!isset($this->components[$name])) {
Line 143:                $component $this->createComponent($name);
Line 144:                if ($component instanceof IComponent && $component->getParent() === NULL) {
Line 145:                    $this->addComponent($component$name);

Call stack

  1. Application/Presenter.php (1204) source   ComponentContainer-> getComponent (arguments )

  2. Application/Presenter.php (210) source   Presenter-> saveGlobalState ()

  3. Application/Application.php (145) source   Presenter-> run (arguments )

  4. app/bootstrap.php (134) source   Application-> run ()

  5. www/index.php (14) source   require (arguments )

Nette Application

Environment

HTTP request

HTTP response