Skip to content

Instantly share code, notes, and snippets.

@YoKoGFX YoKoGFX/bootstrapper.php Secret

Created Jul 11, 2020
Embed
What would you like to do?
<?php
/**
* @package Ohanah
* @copyright Copyright (C) 2012 - 2015 Beyounic SA. All rights reserved.
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.beyounic.com
*/
// Initialize our custom Vendor folder.
require_once JPATH_ROOT.'/administrator/components/com_ohanah/lib/vendor/autoload.php';
require_once JPATH_ROOT.'/libraries/joomlatools/component/com_emails/lib/vendor/autoload.php';
//require_once JPATH_ROOT.'/libraries/koowa/components/com_emails/lib/vendor/autoload.php';
return array(
'aliases' => array(
'com://site/ohanah.model.attendees' => 'com://admin/ohanah.model.attendees',
'com://site/ohanah.model.pages' => 'com://admin/ohanah.model.pages',
'com://site/ohanah.template.helper.number' => 'com://admin/ohanah.template.helper.number',
'com://site/ohanah.template.helper.listbox' => 'com://admin/ohanah.template.helper.listbox',
),
'identifiers' => array(
'template.engine.factory' => array(
'engines' => array('lib:template.engine.mustache'),
),
'com://site/ohanah.controller.event' => array(
'behaviors' => array(
'com://site/ohanah.controller.behavior.filterable'
)
),
'request' => array('formats' => ['text' => ['text/mustache'], ['json' => 'application/json']]),
//'lib:controller.request' => array('formats' => ['text' => ['text/mustache'], ['json' => 'application/json']]),
'com://site/ohanah.controller.order' => array(
'behaviors' => array(
'com://admin/ohanah.controller.behavior.notifiable' => array(
'actions' => array(
'after.add' => array(
array(
'type' => 'email',
'subject' => 'com://site/ohanah.emails.templates.order_created--customer--subject',
'template' => 'com://site/ohanah.emails.templates.order_created--customer--body',
'object' => 'com://admin/ohanah.notification.object.order_created_customer',
),
array(
'type' => 'email',
'subject' => 'com://site/ohanah.emails.templates.order_created--event_creator--subject',
'template' => 'com://site/ohanah.emails.templates.order_created--event_creator--body',
'object' => 'com://admin/ohanah.notification.object.order_confirmation_creator',
),
array(
'type' => 'email',
'subject' => 'com://site/ohanah.emails.templates.order_created--group--subject',
'template' => 'com://site/ohanah.emails.templates.order_created--group--body',
'object' => 'com://admin/ohanah.notification.object.order_confirmation_group',
),
),
),
),
)
),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.