This commit is contained in:
Antonio de la Rosa 2015-05-28 03:46:52 +02:00
parent 8cda38ec01
commit 599f1b6871

View file

@ -82,6 +82,12 @@ class Webmodel {
static public $cache_model=array();
/**
* Array for check if a extension was loaded.
*/
static public $cache_extension=array();
/**
*
* With this property, you can define what is the server connection that you have to use for read the source data.
@ -1375,7 +1381,13 @@ class Webmodel {
public function __call($name_method, $arguments)
{
include(__DIR__.'/../extensions/'.$name_method.'.php');
if(!isset(Webmodel::$cache_extension[$name_method]))
{
include(__DIR__.'/../extensions/'.$name_method.'.php');
Webmodel::$cache_extension[$name_method]=1;
}
array_unshift($arguments, $this);