Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1440

Joomla! 4.x Coding • Re: Problem finding models

$
0
0
OK, some progress. Just stripped out the getModel stuff, I've no idea why it fails, but probably for the same reason as FolderModel::getTable() fails:

Code:

 public function getTable($type = 'Folder', $prefix = 'Conlucra\\Component\\Chat\\Administrator\\Table', $config = [])    {           // Ensure the table class exists        $tableClass = $prefix . '\\' . $type . 'Table';        if (!class_exists($tableClass)) {            throw new \RuntimeException(sprintf('Table class %s not found.', $tableClass));        }        // Create the table instance        $table = Table::getInstance($type, $prefix, $config);        if (!$table) {            throw new \RuntimeException(sprintf('Failed to create table instance for type %s.', $type));        }        return $table;    }
The error is from the second check:

An error has occurred.
0 Failed to create table instance for type Folder.

Statistics: Posted by david0058 — Sun Dec 22, 2024 7:48 pm



Viewing all articles
Browse latest Browse all 1440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>