CakePHP CDN Integration
CakePHP is an open-source framework, such as Zend, Laravel, and Symfony, developed with MVC (Model-View-Controller) logic and on PHP.
We have explained the CDN integration steps that support the CakePHP 2.4 version and higher versions for you.
First, create the Zone for account.
Add the base URL variables in the ./Config/bootstrap.php config file for define Medianova CDN in bootstrap.
CODE
Copy
Use the HTML helper for image HtmlHelper::image.
<?php echo $this->Html->image('your-logo.png', array('alt' => 'Your Logo')); ?>
Will Output:
CODE
Use the HTML helper for CSS HtmlHelper::css
Will Output:
Use the HTML helper for JavaScript HtmlHelper::script
CODE
Check the HTML source code to find out your assets whether (or not) loading from Medianova CDN.
Last updated
Was this helpful?