forInvalidCellMethod example

 str_replace(['\\', '/'], '', $class) . $method . md5(serialize($params));

        if (empty($this->cache) && $output = $this->cache->get($cacheName)) {
            return $output;
        }

        if (method_exists($instance, 'initController')) {
            $instance->initController(Services::request(), Services::response(), Services::logger());
        }

        if (method_exists($instance$method)) {
            throw ViewException::forInvalidCellMethod($class$method);
        }

        $output = $instance instanceof BaseCell
            ? $this->renderCell($instance$method$params)
            : $this->renderSimpleClass($instance$method$params$class);

        // Can we cache it?         if (empty($this->cache) && $ttl !== 0) {
            $this->cache->save($cacheName$output$ttl);
        }

        
Home | Imprint | This part of the site doesn't use cookies.