/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveFinder.php(1408)
1396 1397 private function queryOneMany() 1398 { 1399 $relation=$this->relation; 1400 $model=$this->_finder->getModel($relation->className); 1401 $builder=$model->getCommandBuilder(); 1402 $schema=$builder->getSchema(); 1403 $table=$model->getTableSchema(); 1404 $parent=$this->_parent; 1405 $pkTable=$parent->model->getTableSchema(); 1406 1407 $fks=preg_split('/\s*,\s*/',$relation->foreignKey,-1,PREG_SPLIT_NO_EMPTY); 1408 if(count($fks)!==count($pkTable->primaryKey)) 1409 throw new CDbException(Yii::t('yii','The relation "{relation}" in active record class "{class}" is specified with an invalid foreign key. The columns in the key must match the primary keys of the table "{table}".', 1410 array('{class}'=>get_class($parent->model), '{relation}'=>$relation->name, '{table}'=>$pkTable->name))); 1411 1412 // set up mapping between fk and pk columns 1413 $map=array(); // pk=>fk 1414 foreach($fks as $i=>$fk) 1415 { 1416 if(!isset($table->columns[$fk])) 1417 throw new CDbException(Yii::t('yii','The relation "{relation}" in active record class "{class}" is specified with an invalid foreign key "{key}". There is no such column in the table "{table}".', 1418 array('{class}'=>get_class($parent->model), '{relation}'=>$relation->name, '{key}'=>$fk, '{table}'=>$table->name))); 1419 1420 if(isset($table->foreignKeys[$fk]))
#0 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveFinder.php(1394): CStatElement->queryOneMany() 1389 public function query() 1390 { 1391 if(preg_match('/^\s*(.*?)\((.*)\)\s*$/',$this->relation->foreignKey,$matches)) 1392 $this->queryManyMany($matches[1],$matches[2]); 1393 else 1394 $this->queryOneMany(); 1395 } 1396 1397 private function queryOneMany() 1398 { 1399 $relation=$this->relation; |
#1 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveFinder.php(472): CStatElement->query() 467 $pk[$name]=$baseRecord->$name; 468 $this->records[serialize($pk)]=$baseRecord; 469 } 470 471 foreach($this->stats as $stat) 472 $stat->query(); 473 474 if(!$this->children) 475 return; 476 477 $params=array(); |
#2 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind(Forum) 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
#3 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(281): CActiveFinder->lazyFind(Forum) 276 else 277 $r=$name; 278 unset($this->_related[$name]); 279 280 $finder=$this->getActiveFinder($r); 281 $finder->lazyFind($this); 282 283 if(!isset($this->_related[$name])) 284 { 285 if($relation instanceof CHasManyRelation) 286 $this->_related[$name]=array(); |
#4 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(181): CActiveRecord->getRelated("commentsCount") 176 elseif(isset($this->getMetaData()->columns[$name])) 177 return false; 178 elseif(isset($this->_related[$name])) 179 return true; 180 elseif(isset($this->getMetaData()->relations[$name])) 181 return $this->getRelated($name)!==null; 182 else 183 return parent::__isset($name); 184 } 185 186 /** |
#5 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(1923): CActiveRecord->__isset("commentsCount") 1918 * @param mixed $offset the offset to check on 1919 * @return boolean 1920 */ 1921 public function offsetExists($offset) 1922 { 1923 return $this->__isset($offset); 1924 } 1925 } 1926 1927 1928 /** |
#6 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(358): CActiveRecord->offsetExists("commentsCount") 353 // array 354 if (Twig_Template::METHOD_CALL !== $type) { 355 $arrayItem = is_bool($item) || is_float($item) ? (int) $item : $item; 356 357 if ((is_array($object) && array_key_exists($arrayItem, $object)) 358 || ($object instanceof ArrayAccess && isset($object[$arrayItem])) 359 ) { 360 if ($isDefinedTest) { 361 return true; 362 } 363 |
#7 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/ba/d0/f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c.php(67): Twig_Template->getAttribute(Forum, "commentsCount") 62 echo "</a> 63 </div> 64 <div class=\"info\"> 65 <span class=\"comments\">"; 66 // line 12 67 echo twig_escape_filter($this->env, $this->getAttribute((isset($context["post"]) ? $context["post"] : null), "commentsCount"), "html", null, true); 68 echo "</span> 69 "; 70 // line 15 71 echo " <div class=\"cr\"></div> 72 </div> |
#8 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(144): __TwigTemplate_bad0f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c->block_postsContent(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array()) 139 $block = null; 140 } 141 142 if (null !== $template) { 143 try { 144 $template->$block($context, $blocks); 145 } catch (Twig_Error $e) { 146 throw $e; 147 } catch (Exception $e) { 148 throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e); 149 } |
#9 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/96/e9/3187a934c9fc484de36a038f5390824fa690f114c81dff79238d0d51abd8.php(29): Twig_Template->displayBlock("postsContent", array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array()) 24 echo " Форум</h1> 25 </div> 26 27 "; 28 // line 5 29 $this->displayBlock('postsContent', $context, $blocks); 30 // line 6 31 echo " 32 "; 33 // line 7 34 $this->env->loadTemplate("baseElements/pagination.twig")->display(array_merge($context, array("pages" => (isset($context["pages"]) ? $context["pages"] : null)))); |
#10 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_96e93187a934c9fc484de36a038f5390824fa690f114c81dff79238d0d51abd8->doDisplay(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array("postsContent" => array(__TwigTemplate_bad0f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c, "block_postsContent"))) 273 } 274 275 protected function displayWithErrorHandling(array $context, array $blocks = array()) 276 { 277 try { 278 $this->doDisplay($context, $blocks); 279 } catch (Twig_Error $e) { 280 if (!$e->getTemplateFile()) { 281 $e->setTemplateFile($this->getTemplateName()); 282 } 283 |
#11 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array("postsContent" => array(__TwigTemplate_bad0f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c, "block_postsContent"))) 247 /** 248 * {@inheritdoc} 249 */ 250 public function display(array $context, array $blocks = array()) 251 { 252 $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks); 253 } 254 255 /** 256 * {@inheritdoc} 257 */ |
#12 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/ba/d0/f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c.php(22): Twig_Template->display(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array("postsContent" => array(__TwigTemplate_bad0f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c, "block_postsContent"))) 17 return $this->env->resolveTemplate((($this->getAttribute((isset($context["this"]) ? $context["this"] : null), "limit")) ? ("widgets/_bottom_forum.twig") : ("widgets/_all_forum.twig"))); 18 } 19 20 protected function doDisplay(array $context, array $blocks = array()) 21 { 22 $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); 23 } 24 25 // line 3 26 public function block_postsContent($context, array $blocks = array()) 27 { |
#13 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_bad0f3c661e30593888c3ea9d39d72e4ab770311e08c241213c7b12503c90a1c->doDisplay(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array()) 273 } 274 275 protected function displayWithErrorHandling(array $context, array $blocks = array()) 276 { 277 try { 278 $this->doDisplay($context, $blocks); 279 } catch (Twig_Error $e) { 280 if (!$e->getTemplateFile()) { 281 $e->setTemplateFile($this->getTemplateName()); 282 } 283 |
#14 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), array()) 247 /** 248 * {@inheritdoc} 249 */ 250 public function display(array $context, array $blocks = array()) 251 { 252 $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks); 253 } 254 255 /** 256 * {@inheritdoc} 257 */ |
#15 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(263): Twig_Template->display(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...)) 258 public function render(array $context) 259 { 260 $level = ob_get_level(); 261 ob_start(); 262 try { 263 $this->display($context); 264 } catch (Exception $e) { 265 while (ob_get_level() > $level) { 266 ob_end_clean(); 267 } 268 |
#16 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/components/TwigViewRenderer.php(54): Twig_Template->render(array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...)) 49 $sourceFile = substr($file, $this->_themeBasePathLength); 50 } else { 51 $sourceFile = substr($file, $this->_basePathLength); 52 } 53 54 $result = $this->_twig->loadTemplate($sourceFile)->render($data); 55 if ($return) { 56 return $result; 57 } else { 58 echo $result; 59 } |
#17 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/widgets/Widget.php(19): TwigViewRenderer->renderFile(ForumWidget, "/var/www/u1302250/data/home/wb/waysbook/server/protected/views/w...", array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/", ...), false) 14 $path = $basePath . '.twig'; 15 if (!file_exists($path)) { 16 $path = $basePath . '.php'; 17 return $this->renderInternal($path, $data, $return); 18 } else { 19 return Yii::app()->viewRenderer->renderFile($this, $path, $data, $return); 20 } 21 } 22 23 /** 24 * @param $route |
#18 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/widgets/ForumWidget.php(52): Widget->render("forum", array("forumPosts" => array(Forum, Forum), "model" => Country, "pages" => CPagination, "return" => "/")) 47 48 $this->render('forum', [ 49 'forumPosts' => $forum, 50 'model' => $this->model, 51 'pages' => $pages, 52 'return' => '/'//urldecode($_SERVER['REQUEST_URI']) 53 ]); 54 } 55 } |
#19 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CBaseController.php(147): ForumWidget->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#20 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CBaseController.php(166): CBaseController->createWidget("ForumWidget", array("model" => Country, "objectPath" => "encyclopedia/country", "pathParams" => array("country" => "Australia"))) 161 { 162 if($captureOutput) 163 { 164 ob_start(); 165 ob_implicit_flush(false); 166 $widget=$this->createWidget($className,$properties); 167 $widget->run(); 168 return ob_get_clean(); 169 } 170 else 171 { |
#21 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(460): CBaseController->widget("ForumWidget", array("model" => Country, "objectPath" => "encyclopedia/country", "pathParams" => array("country" => "Australia")), true) 455 } 456 457 // Some objects throw exceptions when they have __call, and the method we try 458 // to call is not supported. If ignoreStrictCheck is true, we should return null. 459 try { 460 $ret = call_user_func_array(array($object, $method), $arguments); 461 } catch (BadMethodCallException $e) { 462 if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) { 463 return null; 464 } 465 throw $e; |
#22 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/a6/6d/7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575.php(35): Twig_Template->getAttribute(EncyclopediaController, "widget", array("ForumWidget", array("model" => Country, "objectPath" => "encyclopedia/country", "pathParams" => array("country" => "Australia")), true), "method") 30 // line 4 31 echo " 32 <div class=\"all_forum_block\"> 33 "; 34 // line 6 35 echo $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "widget", array(0 => "ForumWidget", 1 => array("model" => (isset($context["country"]) ? $context["country"] : null), "objectPath" => "encyclopedia/country", "pathParams" => array("country" => $this->getAttribute((isset($context["country"]) ? $context["country"] : null), "slug", array(), "array"))), 2 => true), "method"); 36 // line 10 37 echo " 38 </div> 39 40 "; |
#23 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(144): __TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575->block_forumContent(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array()) 139 $block = null; 140 } 141 142 if (null !== $template) { 143 try { 144 $template->$block($context, $blocks); 145 } catch (Twig_Error $e) { 146 throw $e; 147 } catch (Exception $e) { 148 throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e); 149 } |
#24 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/88/f6/c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5.php(76): Twig_Template->displayBlock("forumContent", array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array()) 71 <div class=\"cr\"></div> 72 </div> 73 74 "; 75 // line 32 76 $this->displayBlock('forumContent', $context, $blocks); 77 // line 33 78 echo " 79 </section> 80 81 <aside class=\"encyclopedia_right\"> |
#25 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(144): __TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5->block_bodyContent(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 139 $block = null; 140 } 141 142 if (null !== $template) { 143 try { 144 $template->$block($context, $blocks); 145 } catch (Twig_Error $e) { 146 throw $e; 147 } catch (Exception $e) { 148 throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e); 149 } |
#26 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/e5/09/214370e9699ca5415b303b0ed59472f1550d9a5fa4b886fdaef521b234ba.php(83): Twig_Template->displayBlock("bodyContent", array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 78 echo "</head> 79 80 <body> 81 "; 82 // line 36 83 $this->displayBlock('bodyContent', $context, $blocks); 84 // line 37 85 echo "<script> 86 window.params = { 87 userFollowUrl: '"; 88 // line 39 |
#27 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_e509214370e9699ca5415b303b0ed59472f1550d9a5fa4b886fdaef521b234ba->doDisplay(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("bodyContent" => array(__TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5, "block_bodyContent"), "forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 273 } 274 275 protected function displayWithErrorHandling(array $context, array $blocks = array()) 276 { 277 try { 278 $this->doDisplay($context, $blocks); 279 } catch (Twig_Error $e) { 280 if (!$e->getTemplateFile()) { 281 $e->setTemplateFile($this->getTemplateName()); 282 } 283 |
#28 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("bodyContent" => array(__TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5, "block_bodyContent"), "forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 247 /** 248 * {@inheritdoc} 249 */ 250 public function display(array $context, array $blocks = array()) 251 { 252 $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks); 253 } 254 255 /** 256 * {@inheritdoc} 257 */ |
#29 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/4a/c1/8d929f8805f44961c179d52bfde977c4645cf33ef6781101174fc03c1917.php(23): Twig_Template->display(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("bodyContent" => array(__TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5, "block_bodyContent"), "forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 18 return "base.twig"; 19 } 20 21 protected function doDisplay(array $context, array $blocks = array()) 22 { 23 $this->parent->display($context, array_merge($this->blocks, $blocks)); 24 } 25 26 public function getTemplateName() 27 { 28 return "encyclopedia/_layout.twig"; |
#30 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_4ac18d929f8805f44961c179d52bfde977c4645cf33ef6781101174fc03c1917->doDisplay(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("bodyContent" => array(__TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5, "block_bodyContent"), "forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 273 } 274 275 protected function displayWithErrorHandling(array $context, array $blocks = array()) 276 { 277 try { 278 $this->doDisplay($context, $blocks); 279 } catch (Twig_Error $e) { 280 if (!$e->getTemplateFile()) { 281 $e->setTemplateFile($this->getTemplateName()); 282 } 283 |
#31 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("bodyContent" => array(__TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5, "block_bodyContent"), "forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 247 /** 248 * {@inheritdoc} 249 */ 250 public function display(array $context, array $blocks = array()) 251 { 252 $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks); 253 } 254 255 /** 256 * {@inheritdoc} 257 */ |
#32 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/88/f6/c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5.php(25): Twig_Template->display(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("bodyContent" => array(__TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5, "block_bodyContent"), "forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 20 return "encyclopedia/_layout.twig"; 21 } 22 23 protected function doDisplay(array $context, array $blocks = array()) 24 { 25 $this->parent->display($context, array_merge($this->blocks, $blocks)); 26 } 27 28 // line 3 29 public function block_bodyContent($context, array $blocks = array()) 30 { |
#33 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_88f6c2199a7e509f91f412c27bd7647ac2b16987d2e12cc8a8555166918a81b5->doDisplay(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 273 } 274 275 protected function displayWithErrorHandling(array $context, array $blocks = array()) 276 { 277 try { 278 $this->doDisplay($context, $blocks); 279 } catch (Twig_Error $e) { 280 if (!$e->getTemplateFile()) { 281 $e->setTemplateFile($this->getTemplateName()); 282 } 283 |
#34 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 247 /** 248 * {@inheritdoc} 249 */ 250 public function display(array $context, array $blocks = array()) 251 { 252 $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks); 253 } 254 255 /** 256 * {@inheritdoc} 257 */ |
#35 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/a6/6d/7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575.php(24): Twig_Template->display(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array("forumContent" => array(__TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575, "block_forumContent"))) 19 return "forum/country/_layout.twig"; 20 } 21 22 protected function doDisplay(array $context, array $blocks = array()) 23 { 24 $this->parent->display($context, array_merge($this->blocks, $blocks)); 25 } 26 27 // line 3 28 public function block_forumContent($context, array $blocks = array()) 29 { |
#36 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(278): __TwigTemplate_a66d7d5cbe02f93deed644fc227e673d0487077bd8cd7e66343165f9fafd1575->doDisplay(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array()) 273 } 274 275 protected function displayWithErrorHandling(array $context, array $blocks = array()) 276 { 277 try { 278 $this->doDisplay($context, $blocks); 279 } catch (Twig_Error $e) { 280 if (!$e->getTemplateFile()) { 281 $e->setTemplateFile($this->getTemplateName()); 282 } 283 |
#37 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(252): Twig_Template->displayWithErrorHandling(array("country" => Country, "this" => EncyclopediaController, "app" => Application, "html" => StaticClassProxy, ...), array()) 247 /** 248 * {@inheritdoc} 249 */ 250 public function display(array $context, array $blocks = array()) 251 { 252 $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks); 253 } 254 255 /** 256 * {@inheritdoc} 257 */ |
#38 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(263): Twig_Template->display(array("country" => Country, "this" => EncyclopediaController)) 258 public function render(array $context) 259 { 260 $level = ob_get_level(); 261 ob_start(); 262 try { 263 $this->display($context); 264 } catch (Exception $e) { 265 while (ob_get_level() > $level) { 266 ob_end_clean(); 267 } 268 |
#39 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/components/TwigViewRenderer.php(54): Twig_Template->render(array("country" => Country, "this" => EncyclopediaController)) 49 $sourceFile = substr($file, $this->_themeBasePathLength); 50 } else { 51 $sourceFile = substr($file, $this->_basePathLength); 52 } 53 54 $result = $this->_twig->loadTemplate($sourceFile)->render($data); 55 if ($return) { 56 return $result; 57 } else { 58 echo $result; 59 } |
#40 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CBaseController.php(93): TwigViewRenderer->renderFile(EncyclopediaController, "/var/www/u1302250/data/home/wb/waysbook/server/protected/views//...", array("country" => Country, "this" => EncyclopediaController), true) 88 */ 89 public function renderFile($viewFile,$data=null,$return=false) 90 { 91 $widgetCount=count($this->_widgetStack); 92 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 93 $content=$renderer->renderFile($this,$viewFile,$data,$return); 94 else 95 $content=$this->renderInternal($viewFile,$data,$return); 96 if(count($this->_widgetStack)===$widgetCount) 97 return $content; 98 else |
#41 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CController.php(869): CBaseController->renderFile("/var/www/u1302250/data/home/wb/waysbook/server/protected/views//...", array("country" => Country), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#42 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CController.php(782): CController->renderPartial("//forum/country/forum", array("country" => Country), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#43 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/protected/controllers/EncyclopediaController.php(80): CController->render("//forum/country/forum", array("country" => Country)) 75 $context ['forum_id'] = $forum_id; 76 break; 77 default: 78 throw new CHttpException(404); 79 } 80 $this->render($templateName, $context); 81 } 82 83 public function actionRegion($country, $region, $tab = '', $forum_id = 0) 84 { 85 $region = $this->loadRegionDepend($country, $region); |
#44 |
unknown(0): EncyclopediaController->actionCountry(Country, "forum", 0)
|
#45 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(EncyclopediaController, array("Australia", "forum", 0)) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#46 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(EncyclopediaController, ReflectionMethod, array("country" => "Australia", "tab" => "forum")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#47 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("country" => "Australia", "tab" => "forum")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#48 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#49 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#50 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("country") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#51 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("encyclopedia/country") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#52 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/vendor/yiisoft/yii/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#53 |
+
–
/var/www/u1302250/data/home/wb/waysbook/server/www/index.php(21): CApplication->run() 16 17 require_once(dirname(__FILE__) . '/../protected/components/Application.php'); 18 $config = require($configPath); 19 $app = Yii::createApplication('Application', $config); 20 $app->debug = YII_DEBUG; 21 $app->run(); |