Skip to content

Instantly share code, notes, and snippets.

View lalainarahajason's full-sized avatar

Rahajason lalainarahajason

  • Cannes (France)
View GitHub Profile
@lalainarahajason
lalainarahajason / gist:d0970a6543a02ee5392aed28af1cf918
Created November 23, 2023 08:28
Prestashop : Get cover image of a product in a smarty template
{Image::getImgFolderStatic($product.cover.id_image)}{$product.cover.id_image}.jpg
@lalainarahajason
lalainarahajason / page.jsx
Last active November 1, 2023 20:32
Page.jsx
import { useRouter } from "next/navigation";
export default function Main() {
const router = useRouter();
const nextPage = (data) => {
router.push("/events/add");
};
return (
<>
<input type="button" onClick={nextPage} />
@lalainarahajason
lalainarahajason / Sendinblue send transactional email
Created August 24, 2020 12:18
Create transactional email with html as params
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api-key
$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'MY_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure API key authorization: partner-key
$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'MY_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed