Table places for model Place was not found in datasource default.


  • /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Model/Model.php : 1165
    1158         if (method_exists($db'listSources')) { 
    1159             $restore $db->cacheSources
    1160             $db->cacheSources = ($restore && $this->cacheSources); 
    1161             $sources $db->listSources(); 
    1162             $db->cacheSources $restore
    1163  
    1164             if (is_array($sources) && !in_array(strtolower($this->tablePrefix $tableName), array_map('strtolower'$sources))) { 
    1165                 throw new MissingTableException(array( 
    1166                     'table' => $this->tablePrefix $tableName
    1167                     'class' => $this->alias
    1168                     'ds' => $this->useDbConfig
    1169                 )); 
    1170             
    1171  
    1172             if ($sources) { 
    1173                 $this->_schema null
  • Model setSource ( places )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Model/Model.php : 3660
    3653  Gets the DataSource to which this model is bound
    3654  
    3655  * @return DataSource A DataSource object 
    3656  */ 
    3657     public function getDataSource() { 
    3658         if (!$this->_sourceConfigured && $this->useTable !== false) { 
    3659             $this->_sourceConfigured true
    3660             $this->setSource($this->useTable); 
    3661         
    3662  
    3663         return ConnectionManager::getDataSource($this->useDbConfig); 
    3664     
    3665  
    3666 /** 
    3667  Get associations 
    3668  
  • Model getDataSource ( )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Model/Model.php : 1387
    1380  * $field => keys(type, null, default, key, length, extra) 
    1381  * 
    1382  * @param bool|string $field Set to true to reload schema, or a string to return a specific field 
    1383  * @return array|null Array of table metadata 
    1384  */ 
    1385     public function schema($field = false) { 
    1386         if ($this->useTable !== false && (!is_array($this->_schema) || $field === true)) { 
    1387             $db = $this->getDataSource(); 
    1388             $db->cacheSources = ($this->cacheSources && $db->cacheSources); 
    1389             if (method_exists($db, 'describe')) { 
    1390                 $this->_schema = $db->describe($this); 
    1391             } 
    1392         } 
    1393  
    1394         if (!is_string($field)) { 
    1395             return $this->_schema; 
  • Model schema ( boolean: false )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Model/AppModel.php : 678
    671      * @param    field 
    672      *                Set to true to get schema with polyglot fields
    673      
    674      * @return    MySQL field definition for the choose field
    675      * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 
    676     function schema($field false) { 
    677         if ($field !== true) { 
    678             return parent::schema($field); 
    679         
    680  
    681         $schema parent::schema(); 
    682         foreach ($schema as $field => $params) { 
    683             if (strpos($field'__')) { 
    684                 unset($schema[$field]); 
    685             
    686         
  • AppModel schema ( )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Model/AppModel.php : 236
    229             # Use table fix 
    230             if ($this->useTable === 'app_models' || empty($this->useTable)) { 
    231                 $this->useTable Inflector::tableize($this->alias); 
    232             
    233  
    234             # Schema manipulation 
    235             $i 0
    236             $this->_schema $this->schema(); 
    237  
    238             foreach ($this->_schema as $field => $schema) { 
    239  
    240                 # Get field parameters 
    241                 if (!isset($schema['comment'])) { 
    242                     $schema['comment'] = null
    243                 
    244                 $schema['params'] = @array_filter((array) explode(' '$schema['comment'])); 
  • AppModel __construct ( Array ( [class] => Place … )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Utility/ClassRegistry.php : 200
    193                     if ($strict) { 
    194                         return false
    195                     } elseif ($plugin && class_exists($plugin 'AppModel')) { 
    196                         $appModel $plugin 'AppModel'
    197                     
    198  
    199                     $settings['name'] = $class
    200                     $instance = new $appModel($settings); 
    201                 
    202                 $_this->map($alias$class); 
    203             
    204         
    205  
    206         if ($count 1) { 
    207             return true
    208         
  • ClassRegistry :: init ( Place )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Plugin/Seo/Model/MetaGenerators/SeoCustomGenerator.php : 17
    10     protected function alterAtRuntime($page$allTags$request) { 
    11  
    12         # Get active language 
    13         $lang $request->params['language']; 
    14         if($page['Page']['id'] == 10 && $page['Page']['slug'] != end($request->params['pass'])) { 
    15  
    16             # Get place title 
    17             $placeTitle ClassRegistry::init('Place')->field('title', array( 
    18                 'Place.slug' => end($request->params['pass']) 
    19             )); 
    20  
    21             $allTags[1][$lang] = __('Slike') . ' - ' $placeTitle
    22             return $this->generateChildTags($allTags) + $allTags
    23  
    24         } else if($page['Page']['parent_id'] == 10) { 
    25  
  • SeoCustomGenerator alterAtRuntime ( Array ( [Page] => Array … , Array ( [11] => Array … , CakeRequest Object ( [params… )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Plugin/Seo/Model/MetaGenerators/SeoGenerator.php : 84
    77         # Override cannonical url if there are query or named params 
    78         if(!empty($request->query) || !empty($request->params['named'])) { 
    79             $baseUrl cleanUrl($request); 
    80             $allTags $this->addTag($allTags'rel:canonical'FRONT_BASE_URL $baseUrl$this->currentLanguage); 
    81         
    82  
    83         # Alter tags 
    84         return $this->alterAtRuntime($page$allTags$request); 
    85     
    86  
    87  
    88 # ~ Function to override in subclasses - - - - - - - - - - - - - - - - - - - - # 
    89     protected function alterAfterSave($Model$currentTags) { 
    90         return $currentTags
    91     
    92  
  • SeoGenerator generateAtRuntime ( Array ( [Page] => Array … , Array ( [11] => Array … , CakeRequest Object ( [params… )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Plugin/Seo/Model/MetaGenerators/SeoGeneratorFactory.php : 26
    19  
    20 # ~ Generate metatags on runtime - - - - - - - - - - - - - - - - - - - - - - - # 
    21     public static function onRuntimeGeneration($page$request$allTags) { 
    22         $metaSource $page['Page']['type'] == 'Module' $page['Data'] : $page
    23         $metaSource reset($metaSource); 
    24         $generator = !empty($metaSource['meta']) ? self::getGenerator($metaSource['meta']) : new SeoCustomGenerator(); 
    25         if($generator) { 
    26             return $generator->generateAtRuntime($page$allTags$request); 
    27         
    28         return $allTags
    29     
    30  
    31  
    32 # ~ Merge additional tags with global tags - - - - - - - - - - - - - - - - - - # 
    33     protected static function getAdditionalTags($Model) { 
    34         if(!isset($Model->data['Seo']['metatag']) || empty($Model->data['Seo']['metatag'])) { 
  • SeoGeneratorFactory :: onRuntimeGeneration ( Array ( [Page] => Array … , CakeRequest Object ( [params… , Array ( ) )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Plugin/Seo/Controller/Component/SeoComponent.php : 34
    27  
    28         # Get generated metatags 
    29         $generated $this->MetaTag->extractGeneratedTags($page); 
    30  
    31         $allTags $generated $global
    32  
    33         # Trigger runtime validation 
    34         $allTags SeoGeneratorFactory::onRuntimeGeneration($page$request$allTags); 
    35  
    36         $tagsById $this->MetaTag->getAllById(); 
    37  
    38         foreach($allTags as $tagId => $tagValues) { 
    39             if(!isset($tagsById[$tagId])) { 
    40                 continue; 
    41             
    42             $tag $tagsById[$tagId]; 
  • SeoComponent getMetaTags ( Array ( [Page] => Array … , CakeRequest Object ( [params… )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/Controller/FrontController.php : 178
    171         $this->set('page'$this->page); 
    172         $this->set('assets'$this->assets); 
    173  
    174         # Meta tags 
    175         $this->MetaTag ClassRegistry::init('Seo.MetaTag'); 
    176         $tagDescriptions $this->MetaTag->getAllById(); 
    177         $this->Seo->setTagDescriptions($tagDescriptions); 
    178         $metaTags $this->Seo->getMetaTags($this->page$this->request); 
    179         $forceTitle $this->Seo->getPageTitle($this->page$this->request); 
    180         $seoConfig $this->Seo->getConfig(); 
    181         $this->set(compact('metaTags''tagDescriptions''seoConfig''forceTitle')); 
    182  
    183         $this->layout false
    184  
    185         $html $this->page['Layout']['body']; 
    186  
  • FrontController beforeFilter ( CakeEvent Object ( [_name:pr… )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Event/CakeEventManager.php : 243
    236         foreach ($listeners as $listener) { 
    237             if ($event->isStopped()) { 
    238                 break; 
    239             
    240             if ($listener['passParams'] === true) { 
    241                 $result call_user_func_array($listener['callable'], $event->data); 
    242             } else { 
    243                 $result call_user_func($listener['callable'], $event); 
    244             
    245             if ($result === false) { 
    246                 $event->stopPropagation(); 
    247             
    248             if ($result !== null) { 
    249                 $event->result $result
    250             
    251         
  • CakeEventManager dispatch ( CakeEvent Object ( [_name:pr… )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Controller/Controller.php : 677
    670  * - triggers Component `startupmethods
    671  
    672  * @return void 
    673  * @triggers Controller.initialize $this 
    674  * @triggers Controller.startup $this 
    675  */ 
    676     public function startupProcess() { 
    677         $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize'$this)); 
    678         $this->getEventManager()->dispatch(new CakeEvent('Controller.startup'$this)); 
    679     
    680  
    681 /** 
    682  Perform the various shutdown processes for this controller
    683  Fire the Components and Controller callbacks in the correct order
    684  
    685  * - triggers the component `shutdowncallback
  • Controller startupProcess ( )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Routing/Dispatcher.php : 189
    182  
    183  * @param Controller $controller Controller to invoke 
    184  * @param CakeRequest $request The request object to invoke the controller for. 
    185  * @return CakeResponse the resulting response object 
    186  */ 
    187     protected function _invoke(Controller $controllerCakeRequest $request) { 
    188         $controller->constructClasses(); 
    189         $controller->startupProcess(); 
    190  
    191         $response $controller->response
    192         $render true
    193         $result $controller->invokeAction($request); 
    194         if ($result instanceof CakeResponse) { 
    195             $render false
    196             $response $result
    197         
  • Dispatcher _invoke ( FrontController Object ( [pa… , CakeRequest Object ( [params… )
    /home/bbsoft/public_html/bbsoft.rs/lib/Cake/Routing/Dispatcher.php : 167
    160         if (!($controller instanceof Controller)) { 
    161             throw new MissingControllerException(array( 
    162                 'class' => Inflector::camelize($request->params['controller']) . 'Controller', 
    163                 'plugin' => empty($request->params['plugin']) ? null : Inflector::camelize($request->params['plugin']) 
    164             )); 
    165         } 
    166  
    167         $response = $this->_invoke($controller, $request); 
    168         if (isset($request->params['return'])) { 
    169             return $response->body(); 
    170         } 
    171  
    172         $afterEvent = new CakeEvent('Dispatcher.afterDispatch', $this, compact('request', 'response')); 
    173         $this->getEventManager()->dispatch($afterEvent); 
    174         $afterEvent->data['response']->send(); 
    175     } 
  • Dispatcher dispatch ( CakeRequest Object ( [params… , CakeResponse Object ( [_stat… )
    /home/bbsoft/public_html/bbsoft.rs/VectorCMS/webroot/index.php : 146
    139 # Cronjob handler 
    140 if (isset($argc) && $argc == 2 && isCLI()) { 
    141     define('CRONJOB', $argv[1]); 
    142     $Dispatcher->dispatch(new CakeRequest($argv[1]), new CakeResponse()); 
    143     exit; 
    144 } 
    145  
    146 $Dispatcher->dispatch(new CakeRequest(), new CakeResponse([ 'charset' => Configure::read('App.encoding') ])); 
    147