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;11631164 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 }11711172 if ($sources) {1173 $this->_schema = null;
-
Model
➝
setSource
(
places
)
/home/bbsoft/public_html/bbsoft.rs/lib/Cake/Model/Model.php : 36603653 * Gets the DataSource to which this model is bound.3654 *3655 * @return DataSource A DataSource object3656 */3657 public function getDataSource() {3658 if (!$this->_sourceConfigured && $this->useTable !== false) {3659 $this->_sourceConfigured = true;3660 $this->setSource($this->useTable);3661 }36623663 return ConnectionManager::getDataSource($this->useDbConfig);3664 }36653666 /**3667 * Get associations3668 * -
Model
➝
getDataSource
(
)
/home/bbsoft/public_html/bbsoft.rs/lib/Cake/Model/Model.php : 13871380 * $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 field1383 * @return array|null Array of table metadata1384 */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 }13931394 if (!is_string($field)) {1395 return $this->_schema; -
Model
➝
schema
(
boolean: false
)
/home/bbsoft/public_html/bbsoft.rs/VectorCMS/Model/AppModel.php : 678671 * @param field672 * 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 }680681 $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 : 236229 # Use table fix230 if ($this->useTable === 'app_models' || empty($this->useTable)) {231 $this->useTable = Inflector::tableize($this->alias);232 }233234 # Schema manipulation235 $i = 0;236 $this->_schema = $this->schema();237238 foreach ($this->_schema as $field => $schema) {239240 # Get field parameters241 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 : 200193 if ($strict) {194 return false;195 } elseif ($plugin && class_exists($plugin . 'AppModel')) {196 $appModel = $plugin . 'AppModel';197 }198199 $settings['name'] = $class;200 $instance = new $appModel($settings);201 }202 $_this->map($alias, $class);203 }204 }205206 if ($count > 1) {207 return true;208 } -
ClassRegistry
::
init
(
Place
)
/home/bbsoft/public_html/bbsoft.rs/VectorCMS/Plugin/Seo/Model/MetaGenerators/SeoCustomGenerator.php : 1710 protected function alterAtRuntime($page, $allTags, $request) {1112 # Get active language13 $lang = $request->params['language'];14 if($page['Page']['id'] == 10 && $page['Page']['slug'] != end($request->params['pass'])) {1516 # Get place title17 $placeTitle = ClassRegistry::init('Place')->field('title', array(18 'Place.slug' => end($request->params['pass'])19 ));2021 $allTags[1][$lang] = __('Slike') . ' - ' . $placeTitle;22 return $this->generateChildTags($allTags) + $allTags;2324 } 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 : 8477 # Override cannonical url if there are query or named params78 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 }8283 # Alter tags84 return $this->alterAtRuntime($page, $allTags, $request);85 }868788 # ~ 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 : 261920 # ~ 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 }303132 # ~ 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 : 342728 # Get generated metatags29 $generated = $this->MetaTag->extractGeneratedTags($page);3031 $allTags = $generated + $global;3233 # Trigger runtime validation34 $allTags = SeoGeneratorFactory::onRuntimeGeneration($page, $request, $allTags);3536 $tagsById = $this->MetaTag->getAllById();3738 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 : 178171 $this->set('page', $this->page);172 $this->set('assets', $this->assets);173174 # Meta tags175 $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'));182183 $this->layout = false;184185 $html = $this->page['Layout']['body'];186 -
FrontController
➝
beforeFilter
(
CakeEvent Object
(
[_name:pr…
)
/home/bbsoft/public_html/bbsoft.rs/lib/Cake/Event/CakeEventManager.php : 243236 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 : 677670 * - triggers Component `startup` methods.671 *672 * @return void673 * @triggers Controller.initialize $this674 * @triggers Controller.startup $this675 */676 public function startupProcess() {677 $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));678 $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));679 }680681 /**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 `shutdown` callback. -
Controller
➝
startupProcess
(
)
/home/bbsoft/public_html/bbsoft.rs/lib/Cake/Routing/Dispatcher.php : 189182 *183 * @param Controller $controller Controller to invoke184 * @param CakeRequest $request The request object to invoke the controller for.185 * @return CakeResponse the resulting response object186 */187 protected function _invoke(Controller $controller, CakeRequest $request) {188 $controller->constructClasses();189 $controller->startupProcess();190191 $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 : 167160 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 }166167 $response = $this->_invoke($controller, $request);168 if (isset($request->params['return'])) {169 return $response->body();170 }171172 $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 : 146139 # Cronjob handler140 if (isset($argc) && $argc == 2 && isCLI()) {141 define('CRONJOB', $argv[1]);142 $Dispatcher->dispatch(new CakeRequest($argv[1]), new CakeResponse());143 exit;144 }145146 $Dispatcher->dispatch(new CakeRequest(), new CakeResponse([ 'charset' => Configure::read('App.encoding') ]));147