1. PHP Puzzlers #1

    Sat 09 April 2016

    PHP has some idiosyncrasies that can cause odd or counter intuitive behavior. This will be a series of short posts covering some of these situations.

    Let’s have a look at the following simple piece of code:

    $arr = array('foo','bar','baz');
    
    
    foreach($arr as &$item){
       echo "First array: ".$item …
    Tagged as : PHP
  2. SuiteCRM Nice Relationships

    Fri 18 March 2016

    Module builder and studio are both great tools. They allow simple customisation of a SuiteCRM instance without having to know all the inner workings of SuiteCRM. In particular studio and module builder allows specifying relationships between modules.

    However these relationships can leave a lot to be desired. The generated relationship …

    Tagged as : development SuiteCRM
  3. Generators In PHP

    Fri 11 March 2016

    PHP 5.5 added a really nice feature: Generators.

    Generators allow you to create a function that returns an list of items without having to create a (possibly very large) array first.

    Here’s a simple “classic” generator example. Suppose you wanted to create a range function (PHP provides this …

    Tagged as : PHP
  4. SuiteCRM List View Conditional Formatting

    Fri 04 March 2016

    Sometimes you will want to format fields that are shown on the list view depending on the values. For example you may want to colour the direction field on calls differently or to highlight quotes that expire soon.

    In this post we’ll be adding a simple coloured border to the “Industry” field in the Accounts list view.

  5. SuiteCRM Command Line Install

    Fri 26 February 2016

    You may occasionally want to install SuiteCRM from some automated process. SuiteCRM provides a way to do a “Silent” install which, when given a config_si.php file containing some of the installation details will perform an install.

    The steps involved are quite straightforward. First off we create a config_si.php …

  6. Large imports in SuiteCRM

    Sat 20 February 2016

    For an upcoming post on performance tuning I’ve been playing around with larger databases. To do this I wrote a small script which would insert (possibly) millions of rows. This presented a problem however. Inserting the data was taking a very long time and I was keen to have …

  7. Switching to pelican

    Sat 13 February 2016

    For some time I’ve ran this blog on Wordpress and I’ve had no complaints. Wordpress is a mature and very powerful platform.

    However in my case that turns out to be it’s undoing. I blog at most once a week (it’s been much less than that …

    Tagged as : development Tools
  8. GitHub and BitBucket backups

    Fri 05 February 2016

    Being mildly paranoid about my data I sometimes worry what would happen to my repositories and gists on GitHub and BitBucket (mid way through drafting this post GitHub went down. Just because you’re paranoid doesn’t mean they’re not after you!). Luckily both these services provide an API …

  9. Contributing to SuiteCRM

    Fri 29 January 2016

    One of the great things about SuiteCRM is that it’s open source. This means that, if you find a bug, not only can you fix it but you can also share that fix with the world. This post will briefly cover how to go about contributing a SuiteCRM fix …

    Tagged as : development SuiteCRM
  10. Creating a custom field type in SuiteCRM

    Fri 30 October 2015

    Like a lot of SuiteCRM the field types are customisable and you can add your own types of fields. This post will explain how to add a colour picker as a custom field type.

    First off we need to add the option to studio to allow creating fields of our …

    Tagged as : development SuiteCRM

Page 1 / 3