PHP code example of armenio / zf3-cake-orm

1. Go to this page and download the library: Download armenio/zf3-cake-orm library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

armenio / zf3-cake-orm example snippets


'modules' => array(
	 'Application',
	 'Cake', // <==============================
)

	'Cake' => array(
		'Configure' => array(
			'App' => array(
				'namespace' => 'Application' // <======= put your App/Module namespace HERE!
			),
		),
	),


namespace Application\Model\Table;

use Armenio\Cake\ORM\Table;

class MyTable extends Table
{
	// ...
}


use Armenio\Cake\ORM\TableManager;

$tableManager = new TableManager();

$table = $tableManager->get('MyTable');

$items = $table->find('all')->all();

foreach ($items as $row) {
	var_dump($row);
}