Phalcon is a framework available in an open-source system, which is a full complement to PHP. It is written in C language. Its primary purpose is to keep the high software performance. When integrating BlazingCDN with Phalcon, protect your resources and database by performing a backup. Additionally, the CDN domain must be started in the BlazingCDN Static service. Also, if you want to use a domain with HTTPS protocol, you must activate SSL security.
What are the next steps? You need to run the CDN in Phalcon via the Phalcon \ Mvc \ Url components. Do it with:
<?php
$url = new Phalcon\Mvc\Url();
$url->setStaticBaseUri(‘http://cdn00000000.blazingcdn.net’);// Will output http://cdn00000000.blazingcdn.net/image.jpeg
$url->getStatic(‘image.jpeg’)Enable CDN with Phalcon\Assets component thanks to Create and prefix collection in controller
<?php
use Phalcon\Mvc\Controller;
class IndexController extends Controller
{
public function indexAction()
{
$headerCollection = $this->assets->collection(‘header’);
$headerCollection->setPrefix(‘http://cdn00000000.blazingcdn.net’);
$headerCollection->addJs(‘js/script.js’);
Output view:
<?php $this->assets->outputJs(‘header’); ?>
which will output:
<script type=”text/javascript” src=”http://cdn00000000.blazingcdn.net/js/script.js”></script>
See also:
How to integrate BlazingCDN and Magneto
How to integrate BlazingCDN and Joomla
How to integrate BlazingCDN and Drupal
BlazingCDN integration with Zend
BlazingCDN integration with XenForo
BlazingCDN integration with X-Cart
BlazingCDN integration with WordPress
BlazingCDN integration with vBulletin
BlazingCDN integration with Typo3
BlazingCDN integration with Symfony
BlazingCDN integration with SocialEngine
BlazingCDN integration with Shopware
BlazingCDN integration with PrestaShop
BlazingCDN integration with Perch
BlazingCDN integration with Opencart
BlazingCDN integration with Odoo
BlazingCDN integration with MODX CDN
BlazingCDN integration with Laravel
BlazingCDN integration with Kirby CDN
BlazingCDN integration with Kentico
BlazingCDN integration with IPS
BlazingCDN integration with Grav
BlazingCDN integration with Discourse
BlazingCDN integration with Craft
BlazingCDN integration with concrete5
BlazingCDN integration with CodeIgniter
BlazingCDN integration with b2evolution
BlaizngCDN integration with Ruby on Rails