Strict Standards: Non-static method Configure::getInstance() should not be called statically in /home/bglaz2/bglaz.com/cake/bootstrap.php on line 38
BGlaz.com - The Personal Web Dev Blog and Portofolio Site of Brian Glaz
<?= BGlaz.com~ ?>
Latest Comments Tags
April 16th, 2012
February 22nd, 2012
February 13th, 2012
Beau
Posted: June 23rd, 2017
Amado
Posted: June 22nd, 2017
Launa
Posted: June 22nd, 2017
Jorg
Posted: June 22nd, 2017
Jay
Posted: June 22nd, 2017
Nan
Posted: June 22nd, 2017
Margo
Posted: June 22nd, 2017
Chun
Posted: June 22nd, 2017
Matthew
Posted: June 22nd, 2017
Jens
Posted: June 22nd, 2017
Tamela
Posted: June 22nd, 2017
Otilia
Posted: June 22nd, 2017
Links
Stack Overflow
Brian Glaz

5,271

7
21
Search Results for: MySQL
CakePHP: How to Sum a Virtual Field
Posted July 18th, 2012

While working on a cakephp project earlier today, I came across a situation where I wanted to query my database for a sum of a virtual field that I had defined in my model. I was unsure how to accomplish this, so I did a quick google search for "cakephp sum a virtual field". Surprisingly, not only did I not find an answer to my question, but I didn't even see it being asked anywhere. So, I decided to write up my thinking process and final solution here in this blog post....

(Continue Reading)