Skip to content

Instantly share code, notes, and snippets.

@eggsurplus
Created October 18, 2012 02:31
Show Gist options
  • Select an option

  • Save eggsurplus/3909550 to your computer and use it in GitHub Desktop.

Select an option

Save eggsurplus/3909550 to your computer and use it in GitHub Desktop.
Safely Customizing a Core Bean in SugarCRM - Part 1. CustomCasesController
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
//custom/modules/Cases/controller.php
require_once('include/MVC/Controller/SugarController.php');
require_once('custom/modules/Cases/SOCustomCase.php');
class CustomCasesController extends SugarController {
function action_listview() {
$this->bean = new SOCustomCase();
parent::action_listview();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment