eBuildy: error!
In the file /homez.110/ebuildy/cdn/framework/EbModel.php at line 55:The data source 'news' does not exist!
Stack Trace:
/homez.110/ebuildy/cdn/framework/EbModel.php line 55
- 47: if (!isset(self::$dataSourceInstances[$name]))
- 48: {
- 49: if (isset(self::$dataSources[$name]))
- 50: {
- 51: self::$dataSourceInstances[$name] = new EbPDO(self::$dataSources[$name]);
- 52: }
- 53: else
- 54: {
- 55: throw new Exception("The data source '$name' does not exist!");
- 56: }
- 57: }
- 58:
- 59: return self::$dataSourceInstances[$name];
- 60: }
- 61: }
- 62:
- 63: class EbTable
- 64: {
- 65: var $columns = array();
/homez.110/ebuildy/cdn/helpers/HelperSQLModel.php line 10
function getDataSource ( = Array (
0 = "news"
)
)
- 2:
- 3: class HelperSQLModel
- 4: {
- 5: var $datasource = null;
- 6: var $voClassName = null;
- 7:
- 8: public function __construct($datasource = '',$voClassName = null)
- 9: {
- 10: $this->datasource = EbModel::getDataSource($datasource);
- 11: $this->voClassName = $voClassName;
- 12:
- 13: if ($this->datasource === null)
- 14: {
- 15: throw new Exception("The data source '$datasource' is not found!");
- 16: }
- 17: }
- 18:
- 19: public function sqlCreate($tablename,$columns)
- 20: {
/homez.110/ebuildy/cdn/helpers/HelperTableModel.php line 12
function __construct ( = Array (
0 = "news"
1 = "NewsVO"
)
)
- 4:
- 5: class HelperTableModel extends HelperSQLModel
- 6: {
- 7: var $primarykey;
- 8: var $table;
- 9:
- 10: public function __construct($table,$primarykey = null,$voClassName = null,$datasource = null)
- 11: {
- 12: parent::__construct($datasource,$voClassName);
- 13:
- 14: $this->table = $table;
- 15: $this->primarykey = $primarykey;
- 16: }
- 17:
- 18: public function select($fields = '*',$where = '',$order = '',$limit = 0)
- 19: {
- 20: return parent::querySelect($this->table,$fields,$where,$order,$limit);
- 21: }
- 22:
/homez.110/ebuildy/cdn/modules/News/m/NewsModel.php line 9
function __construct ( = Array (
0 = "news"
1 = "id"
2 = "NewsVO"
3 = "news"
)
)
- 1: <?php
- 2:
- 3: eb_include_module_file('News/m/NewsVO.php');
- 4:
- 5: class NewsModel extends HelperTableModel
- 6: {
- 7: public function __construct()
- 8: {
- 9: parent::__construct('news','id','NewsVO','news');
- 10: }
- 11: }
/homez.110/ebuildy/cdn/ebuildy.php line 242
function newInstance ( = Array (
)
)
- 234: function eb_module_file_new_instance()
- 235: {
- 236: $args = eb_get_module_file_params(func_get_args());
- 237:
- 238: eb_include_module_file($args['module'],$args['name'],$args['type']);
- 239:
- 240: $reflectionClass = new ReflectionClass($args['name'].$args['type']);
- 241:
- 242: return $reflectionClass->newInstance();
- 243: }
- 244:
- 245: function eb_include_component($module,$name,$data = null)
- 246: {
- 247: return EbView::includeFile($module,$name,$data);
- 248: }
- 249:
- 250: function eb_get_model($module,$name)
- 251: {
- 252: return EbModel::getModel($module,$name);
/homez.110/ebuildy/cdn/framework/EbModel.php line 19
function eb_module_file_new_instance ( = Array (
0 = "News"
1 = "News"
2 = "Model"
)
)
- 11: {
- 12: self::$dataSources = $dataSources;
- 13: }
- 14:
- 15: static function getModel($module,$name)
- 16: {
- 17: if (!isset(self::$listModelInstances[$module."_".$name]))
- 18: {
- 19: self::$listModelInstances[$module."_".$name] = eb_module_file_new_instance($module,$name,MODULE_FILE_MODEL);
- 20: }
- 21:
- 22: return self::$listModelInstances[$module."_".$name];
- 23: }
- 24:
- 25: static public function getTable($module,$name)
- 26: {
- 27: if (is_null(self::$tables))
- 28: {
- 29: self::$tables = array();
/homez.110/ebuildy/cdn/framework/EbApplication.php line 199
function getModel ( = Array (
0 = "News"
1 = "News"
)
)
- 191: {
- 192: $request->isApiRequest = true;
- 193:
- 194: $module = $route->module;
- 195: $name = $route->file;
- 196: $method = $route->method;
- 197: $output = isset($route->output) ? $route->output : 'json';
- 198:
- 199: $model = EbModel::getModel($module,$name);
- 200:
- 201: if (isset($request->data->arg1))
- 202: {
- 203: $result = $model->$method($request->data->arg1);
- 204: }
- 205: else
- 206: {
- 207: $result = $model->$method();
- 208: }
- 209:
/homez.110/ebuildy/cdn/framework/EbController.php line 30
function onRequestStart ( = Array (
)
)
- 22: set_exception_handler(array($application,'onException'));
- 23:
- 24: EbModel::init($application->datasources);
- 25:
- 26: $application->request = self::$request = new EbRequest();
- 27: $application->response = self::$response = new EbResponse();
- 28: $application->session = self::$session = new EbSession();
- 29:
- 30: $application->onRequestStart();
- 31: }
- 32:
- 33: static public function execute($module,$command,$data = null)
- 34: {
- 35: $commandInstance = HelperModule::newInstance($module,ucfirst($command),MODULE_FILE_COMMAND);
- 36:
- 37: if ($data !== NULL)
- 38: {
- 39: $data = (object) $data;
- 40: }
/homez.110/ebuildy/www/index.php line 76
function run ( = Array (
0 = MyEbuildy {
urlMediaLibrary : "http://cdn.ebuildy.com/medias/"
pathMediaLibrary : "../cdn/medias/"
title : "eBuildy, Web2.0 Agency!"
urlEbuildy : "http://cdn.ebuildy.com/"
errorTemplate : "EbErrorTemplate.php"
debug : (boolean) true
theme : "ebuildy"
skin : "skins/defaultSkin.php"
routes : Array (
home = stdClass {
name : "home"
type : "v"
url : ""
module : "Ebuildy"
file : "HomePage.php"
label : "Home"
title : "eBuildy, Web Agency: développement de Sites Internets, d'Applications ... Html, JQuery, Adobe Flex, Silverlight ..."
skin : "skins/SimpleSkin.php"
}
contact = stdClass {
name : "contact"
type : "v"
url : "contact"
module : "Ebuildy"
file : "ContactPage.php"
title : "Contactez nous"
}
whoweare = stdClass {
name : "whoweare"
type : "v"
url : "ebuildy/qui-sommes-nous.html"
module : "Ebuildy"
file : "Whoarewe.php"
title : "Qui sommes nous?"
}
ourskills = stdClass {
name : "ourskills"
type : "v"
url : "ebuildy/nos-competences.html"
module : "Ebuildy"
file : "OurSkills.php"
title : "Nos compétences"
}
sitemap = stdClass {
name : "sitemap"
type : "v"
url : "plan-du-site.html"
module : "Ebuildy"
file : "SiteMap.php"
title : "Plan du site"
}
ournews = stdClass {
name : "ournews"
type : "v"
url : "ebuildy/news.html"
module : "Ebuildy"
file : "Whoarewe.php"
title : "News"
}
ourmedia = stdClass {
name : "ourmedia"
type : "v"
url : "ebuildy/media-logo.html"
module : "Ebuildy"
file : "Medias.php"
title : "Média,logos.."
}
sitedev = stdClass {
name : "sitedev"
type : "v"
url : "nos-services/developpement-de-sites-internet.html"
module : "Ebuildy"
file : "SiteDevelopment.php"
title : "Sites Internet"
}
riadev = stdClass {
name : "riadev"
type : "v"
url : "nos-services/rich-internet-applications.html"
module : "Ebuildy"
file : "RiaDevelopment.php"
label : "Applications Internet (RIA)"
title : "Rich Internet Applications - Web 2.0 - Adobe Flex, Silverlight, JQuery ..."
}
videodev = stdClass {
name : "videodev"
type : "v"
url : "nos-services/video-web-tv.html"
module : "Ebuildy"
file : "WebTV.php"
title : "Vidéos et Web TV"
}
googledev = stdClass {
name : "googledev"
type : "v"
url : "nos-services/ebuildy-et-google.html"
module : "Ebuildy"
file : "EbuildyGoogle.php"
title : "eBuildy + Google"
}
servicePortfollio = stdClass {
name : "servicePortfollio"
type : "v"
url : "nos-services/reference.html"
module : "Ebuildy"
file : "PortfollioPage.php"
title : "Nos références"
}
api = stdClass {
name : "api"
type : "m"
url : "api/(module)/(file)/(method).(output)"
module : (NULL)
file : (NULL)
}
login = stdClass {
name : "login"
type : "v"
url : "login"
module : "VarPeople"
file : "LoginPage.php"
}
newsrss = stdClass {
name : "newsrss"
type : "m"
url : "news.rss"
module : "News"
file : "News"
output : "rss"
method : "select"
}
news = stdClass {
name : "news"
type : "v"
url : "news/(news_title)"
module : "Ebuildy"
file : "NewsPage.php"
}
demodesign = stdClass {
name : "demodesign"
type : "v"
url : "showcase-demos/design.html"
module : "Ebuildy"
file : "DemoDesign.tpl"
title : "Démo Design (logo...)"
}
demoflex = stdClass {
name : "demoflex"
type : "v"
url : "showcase-demos/adobe-flex.html"
module : "Ebuildy"
file : "DemoFlex.php"
title : "Démo Adobe Flash et Flex"
}
demosso = stdClass {
name : "demosso"
type : "v"
url : "showcase-demos/single-sign-on.html"
module : "Ebuildy"
file : "DemoSSO.php"
title : "Démo API et Single Sign On"
}
demofacebook = stdClass {
name : "demofacebook"
type : "v"
url : "showcase-demos/facebook.html"
module : "Ebuildy"
file : "DemoFacebook.php"
title : "Démo Facebook"
}
404 = stdClass {
name : "404"
type : "v"
url : "404"
module : "Ebuildy"
file : "NotFoundPage.php"
skin : "skins/SimpleSkin.php"
}
)
datasources : Array (
= stdClass {
dsn : "mysql:host=mysql5-2.pro;dbname=ebuildywtc"
login : "ebuildywtc"
password : "uQitPitm"
}
wordpress = stdClass {
dsn : "mysql:host=mysql5-10;dbname=ebuildywrd"
login : "ebuildywrd"
password : "0ZdR9T7M"
}
)
request = EbRequest {
url : "http://www.ebuildy.com/news.rss"
query : "news.rss"
referer : (NULL)
method : "get"
root : "http://www.ebuildy.com"
route = stdClass {
name : "newsrss"
type : "m"
url : "news.rss"
module : "News"
file : "News"
output : "rss"
method : "select"
}
ip : "38.107.191.111"
extension : "rss"
isApiRequest : (boolean) true
isAjaxRequest : (boolean) false
noCache : (boolean) false
data = HelperDataHolder {
data : Array (
)
}
}
response = EbResponse {
listHeaders : Array (
)
content : (NULL)
type : "html"
}
session = EbSession {
data = HelperDataHolder {
data : Array (
)
}
isAdmin : (NULL)
isBot : (boolean) false
hits : (integer) 0
createdAt : (integer) 1268390207
updatedAt : (integer) 1268390207
createdIp : "38.107.191.111"
roles : Array (
0 = (integer) 2
)
}
adminPassword : "jaja"
siteMap : Array (
0 = stdClass {
name : "home"
type : "v"
url : ""
module : "Ebuildy"
file : "HomePage.php"
label : "Home"
title : "eBuildy, Web Agency: développement de Sites Internets, d'Applications ... Html, JQuery, Adobe Flex, Silverlight ..."
skin : "skins/SimpleSkin.php"
}
eBuildy = Array (
0 = stdClass {
name : "whoweare"
type : "v"
url : "ebuildy/qui-sommes-nous.html"
module : "Ebuildy"
file : "Whoarewe.php"
title : "Qui sommes nous?"
}
1 = stdClass {
name : "ourskills"
type : "v"
url : "ebuildy/nos-competences.html"
module : "Ebuildy"
file : "OurSkills.php"
title : "Nos compétences"
}
2 = stdClass {
name : "ournews"
type : "v"
url : "ebuildy/news.html"
module : "Ebuildy"
file : "Whoarewe.php"
title : "News"
}
3 = stdClass {
name : "ourmedia"
type : "v"
url : "ebuildy/media-logo.html"
module : "Ebuildy"
file : "Medias.php"
title : "Média,logos.."
}
)
Nos Services = Array (
0 = stdClass {
name : "sitedev"
type : "v"
url : "nos-services/developpement-de-sites-internet.html"
module : "Ebuildy"
file : "SiteDevelopment.php"
title : "Sites Internet"
}
1 = stdClass {
name : "riadev"
type : "v"
url : "nos-services/rich-internet-applications.html"
module : "Ebuildy"
file : "RiaDevelopment.php"
label : "Applications Internet (RIA)"
title : "Rich Internet Applications - Web 2.0 - Adobe Flex, Silverlight, JQuery ..."
}
2 = stdClass {
name : "videodev"
type : "v"
url : "nos-services/video-web-tv.html"
module : "Ebuildy"
file : "WebTV.php"
title : "Vidéos et Web TV"
}
3 = stdClass {
name : "googledev"
type : "v"
url : "nos-services/ebuildy-et-google.html"
module : "Ebuildy"
file : "EbuildyGoogle.php"
title : "eBuildy + Google"
}
4 = stdClass {
name : "servicePortfollio"
type : "v"
url : "nos-services/reference.html"
module : "Ebuildy"
file : "PortfollioPage.php"
title : "Nos références"
}
)
Démos = Array (
0 = stdClass {
name : "demodesign"
type : "v"
url : "showcase-demos/design.html"
module : "Ebuildy"
file : "DemoDesign.tpl"
title : "Démo Design (logo...)"
}
1 = stdClass {
name : "demoflex"
type : "v"
url : "showcase-demos/adobe-flex.html"
module : "Ebuildy"
file : "DemoFlex.php"
title : "Démo Adobe Flash et Flex"
}
2 = stdClass {
name : "demosso"
type : "v"
url : "showcase-demos/single-sign-on.html"
module : "Ebuildy"
file : "DemoSSO.php"
title : "Démo API et Single Sign On"
}
3 = stdClass {
name : "servicePortfollio"
type : "v"
url : "nos-services/reference.html"
module : "Ebuildy"
file : "PortfollioPage.php"
title : "Nos références"
}
)
1 = stdClass {
name : "contact"
type : "v"
url : "contact"
module : "Ebuildy"
file : "ContactPage.php"
title : "Contactez nous"
}
)
}
)
)