Error!

Cannot really select other customers (this is only an example).

Read object

Source

<?php

    $id = $_GET['id']??null;
    if(is_null($id)||!is_numeric($id)){$id = 1;}
    $customer = new \customer();
    $customer->get_by_id($id);
    $this->view->customer = $customer;
    

Result

Database\Barebone_me\Activerecords\customer Object
(
    [tablename:Barebone\Activerecord:private] => customer
    [primary_key:Barebone\Activerecord:private] => id
    [pdo:Barebone\Activerecord:private] => Barebone\Database\Connectors\PDO Object
        (
        )

    [debug:protected] => 
    [joins:protected] => Array
        (
        )

    [selected_columns:protected] => Array
        (
        )

    [id] => 1
    [username] => Tester
    [password] => c098c977b6c9242f738ed521a63cb7e8
    [email] => test@example.com
    [created] => 2024-12-07
)