Welcome to MainelyDesign.com

Photos of Rockland, Maine. Summer 2009.

A blog mostly about web design

This is the personal blog of Kevin Wentworth.  Topics covered here are web programming, design and internet marketing.

Changing URL in beforeRedirect() in Component - Cakephp 3

Posted 1 week, 1 day agoViewed 24 times

Change the URL redirect location using beforeRedirect() in Cakephp 3 I wanted to change the redirect behavior from within a component in my Cakephp 3 application.  The old 1.3 method of returning the new $url didn't work.  Turns out that you need to use Response::location() to modify the location of the redirect.  See my code below: public...

Foundation CSS Framework Resources

Posted on 01/28/2016 at 12:30 pmViewed 405 times

Motion UI Classes (used for animation): https://github.com/zurb/motion-ui/blob/master/docs/classes.md

Change View File from Controller in CakePHP 3

Posted on 01/27/2016 at 10:37 amViewed 421 times

You can change what view.ctp file you want to use in your controller with the following line of code.  I place it at the bottom of my function definition.  Useful for having a simple admin interface or a different view template for each language.  This doesn't change the layout of your page, just the view template the controller uses when...

Loading Model/Table Anywhere in Cake3

Posted on 01/13/2016 at 03:56 pmViewed 613 times

I'm finally off on upgrading to CakePHP 3.0.  I'm sick of typing out CakePHP 3.0, so from now on it's just cake3.  I'm going to post about my experiences upgrading a large application to cake3. First thing: it's so easy to get access to a model... ANYWHERE (love it!) use Cake\ORM\TableRegistry; $this->Articles =...

CURL PHP 5.5 Issue on Windows (Using Twilio SDK)

Posted on 10/06/2015 at 09:29 amViewed 2,346 times

You need to install cacert.pem. http://curl.haxx.se/docs/caextract.html Thanks to: http://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/ You need to add thawte premium CA to cacert.pem for Twilio http://stackoverflow.com/a/28545924/5317538

Read More Posts.

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design