Hi everyone,
I'm creating a component in OctoberCMS, and I want to show all the product types in the database. I'm unable to make a database connection, and I've no idea how to do it.
Here's my code:
public function onRun() {
$types = Db::select('select * from types');
echo $types;
}
Does ayone know how to do this?
Thank you! Jeroen van Rensen