What are the key differences between APF and Kohana frameworks in terms of HMVC compatibility?

The key difference between APF and Kohana frameworks in terms of HMVC compatibility is that APF natively supports HMVC architecture while Kohana does not have built-in support for HMVC. To enable HMVC in Kohana, developers need to use third-party modules or extensions.

// Example code for enabling HMVC in Kohana framework using a third-party module
// Step 1: Download and install a HMVC module such as Hmvc from https://github.com/synapsestudios/kohana-hmvc
// Step 2: Enable the module in your application/bootstrap.php file
Kohana::modules(array(
    'hmvc' => MODPATH.'hmvc',
));