CodeIgniter controller managing tax code listings and AJAX search for the POS. Reuse for CRUD-style tax configuration screens.
// Source: https://github.com/opensourcepos/opensourcepos | License: MIT | Copyright 2013-2025 jekkos
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace App\Controllers;
use App\Models\Tax_code;
use CodeIgniter\HTTP\ResponseInterface;
use Config\Services;
/**
* @property tax_code tax_code
*/
class Tax_codes extends Secure_Controller
{
private Tax_code $tax_code;
public function __construct()
{
parent::__construct('tax_codes');
$this->tax_code = model(Tax_code::class);
helper('tax_helper');
}
/**
* @return string
*/
public function getIndex(): string
{
return view('taxes/tax_codes', $this->get_data());
}
/**
* @return array
*/
public function get_data(): array
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key