PHP code example of livioribeiro / nette-propel2

1. Go to this page and download the library: Download livioribeiro/nette-propel2 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/ */

    

livioribeiro / nette-propel2 example snippets


    extensions:
        - NettePropel2\PropelExtension

  use NettePropel2;
  ...
  $container = $configurator->createContainer();
  NettePropel2\Setup::setup($container)

  $database = [
      'default' => [
          'adapter'     => 'sqlite|pgsql|mysql|oracle|mssql',
          'host'        => 'host',
          'dbname'      => 'dbname',
          'user'        => 'user',
          'password'    => 'password'
      ]
  ];