Skip to content

Instantly share code, notes, and snippets.

View andrewwheal's full-sized avatar

Andrew Wheal andrewwheal

  • Cognitran Ltd
  • Rugby, Warwickshire
  • 03:03 (UTC +01:00)
View GitHub Profile
@andrewwheal
andrewwheal / convertNumToString.php
Created March 6, 2013 20:02
Function to convert a number to text
public static function convertNumToString($number, $limit = 999999999999) {
if (($number < 0) || ($number > $limit)) {
return $number;
}
if ($number == 0) {
return "zero";
}
$Tn = floor($number / 1000000000); /* Trillions (tera) */
* bb5a0c1 adding Feature D
|
* e43c9f0 (origin/minor, minor) bug-a merged into master; resolves #4
|\
| * 8f782bd fixing bug A
|/
* c2f9fe1 feature-c merged into master; resolves #3
|\
| * ca00ff6 doing some more stuff for feature C
| * 7fb4763 adding feature C
@andrewwheal
andrewwheal / modules-example-classes-controller-foo.php
Created December 17, 2012 15:06
Propeller Best Practices: Admin CRUD Controller and Views
<?php
namespace Example;
class Controller_Foo extends \Admin\Controller_Template
{
public function action_index()
{
$foo = Model_Foo::find('all');
master o-o-o-o-o-A
A - original master