Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ This extension can help you develop OpenCart controllers which can be run direct
System Requirements
--------------
- UNIX server (oc_cli has not been tested on Windows yet)
- OpenCart 2.2.0.0 to OpenCart 2.3.0.2
- OpenCart 2.2.0.0 to OpenCart 3
- Opencart 3 - Just remove /system/config/oc_cli.php then rename /system/config/oc_cli_3.php to /system/config/oc_cli.php
- Command line access to `php`. You can see if you have it by running `which php`
- "cli" PHP Server API (SAPI)

Expand Down
50 changes: 50 additions & 0 deletions upload/system/config/oc_cli_3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php


// Site
$_['site_url'] = substr(HTTP_SERVER, 7);
$_['site_ssl'] = false;

// Url
$_['url_autostart'] = false;

// Database
$_['db_autostart'] = true;
$_['db_engine'] = DB_DRIVER; // mpdo, mssql, mysql, mysqli or postgre
$_['db_hostname'] = DB_HOSTNAME;
$_['db_username'] = DB_USERNAME;
$_['db_password'] = DB_PASSWORD;
$_['db_database'] = DB_DATABASE;
$_['db_port'] = DB_PORT;

// Session
$_['session_autostart'] = true;
$_['session_engine'] = 'db';
$_['session_name'] = 'OCSESSID';

// Template
$_['template_engine'] = 'twig';
$_['template_directory'] = '';
$_['template_cache'] = true;


// Actions
$_['action_pre_action'] = array(
'oc_cli/startup',
'startup/startup',
'startup/error',
'startup/event'
);

// Actions
$_['action_default'] = 'oc_cli/welcome';
$_['action_router'] = 'oc_cli/router';
$_['action_error'] = 'oc_cli/not_found';

// Action Events
$_['action_event'] = array(
'view/*/before' => array(
'event/theme'
),
);