MainelyDesign.com Blog

Showing articles 11 - 20 (147 total)

Changing URL in beforeRedirect() in Component - Cakephp 3

Posted on 05/23/2016 at 12:21 pm | Viewed 6,932 times | 0 comments

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 pm | Viewed 5,209 times | 0 comments

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 am | Viewed 8,522 times | 0 comments

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 pm | Viewed 5,943 times | 0 comments

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 am | Viewed 6,770 times | 0 comments

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

Javascript Charting Library Research

Posted on 07/16/2015 at 10:36 pm | Viewed 7,728 times | 0 comments

I'm getting ready to roll out some new graphing functionality and wanted to take a look at the state of JavaScript graphing libraries. Goals: Beautiful Charts - there are a lot of hokey looking charts out there Fast Avoid sending data to a 3rd party No license fees.  MIT License is always ideal. Current JavaScript graphing Tools / Approach...

Command line: Start, Stop and Restart MySQL Server on Mac OS X

Posted on 02/26/2015 at 03:18 pm | Viewed 11,464 times | 0 comments

It's easy to manage mysql from the command line in Mac OS X.  Just make sure to remember to run as sudo! Stopping, Restarting and Starting MySQL Server Commands $ sudo /usr/local/mysql/support-files/mysql.server restart Password: ********* Cheers, -Kevin Wentworth

CSS Tools for Web Designers - Best of the Web

Posted on 02/17/2015 at 11:44 am | Viewed 8,236 times | 0 comments

Here are my go-to resources for making all those fancy CSS3 effects on pages: CSS Border Radius Tool CSS Border Radius - http://border-radius.com/ CSS Background Gradients Ultimate CSS Gradient Generator - http://www.colorzilla.com/gradient-editor/ CSS Box Shadow Generator CSS Matic Box Shadow CSS Generator - ...

GeoTrust Quick SSL Premium Intermediate CA for SHA-2

Posted on 01/02/2015 at 09:23 am | Viewed 10,204 times | 0 comments

I just tried to use my handy GeoTrust Intermediate CA cheat and it didn't work.  As of today, you'll need to use the following links to get your GeoTrust Intermediate CAs: Intermediate CA Certificate for GeoTrust QuickSSL Premium SHA-2 (under SHA-1 Root) CA Bundle ...

Performing a Speed Test on Linux Server over SSH

Posted on 12/19/2014 at 10:18 am | Viewed 9,854 times | 0 comments

There have been many times when I've wanted to find out the speed of a server's connection.  Running a ping from your workstation to the server accomplishes nothing when you need to determine the speed of your server's connection to the outside world.  I came across a post with the perfect recommendation. Use CURL and download a large file...

    1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9   

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design