PHP code example of prestashop / module-lib-faq
1. Go to this page and download the library: Download prestashop/module-lib-faq 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/ */
prestashop / module-lib-faq example snippets
use PrestaShop\ModuleLibFaq\Faq;
// [...]
$faq = new Faq('your module key', _PS_VERSION, 'the current iso code');
$faqContent = $faq->getFaq();
use PrestaShop\ModuleLibFaq\Faq;
// [...]
$faq = new Faq('your module key', _PS_VERSION, 'the current iso code');
$faq->setErrorCallable(function(\Exception $e) { /* send to logger */ });
$faqContent = $faq->getFaq();