code: function(resources, options) {
    periodicResources = resources;
    logger = resources.logger;
    appSettings = resources.settings;
    theme = resources.settings.theme;
    controllerOptions = options;
    mongoose = resources.mongoose;
    appenvironment = appSettings.application.environment;
    Item = mongoose.model('Item');
    Contenttypes = mongoose.model('Contenttype');
    Category = mongoose.model('Category');
    Tag = mongoose.model('Tag');
    User = mongoose.model('User');
    Userrole = mongoose.model('Userrole');
    pluralize.addIrregularRule('data', 'datas');
  
    if (resources.app && resources.app.locals) {
      applocals = resources.app.locals;
    }
    CoreUtilities = new Utilities(resources);
  }
docs: A core constructor that provides numerous controller helper functions.
  @{@link https://github.com/typesettin/periodicjs.core.controller}
  @author Yaw Joseph Etse
  @constructor
  @copyright Copyright (c) 2014 Typesettin. All rights reserved.
  @license MIT
  @requires module:fs-extra
  @requires module:path
  @requires module:periodicjs.core.utilities
  @param {object} resources variable injection from resources from instantiated periodic express app