APPPATH/classes/controller/content.php [ 93 ]
88
89 if($aData['mcopyright']) $meta['mcopyright'] = str_replace("{name}",$content['name'], $aData['mcopyright']);
90 else $meta['mcopyright'] = str_replace("{name}",$content['name'], $tmpl['mcopyright']);
91 //Если не заданы то используем шаблон
92 } else {
93 $meta['mtitle'] = str_replace("{name}",$content['name'], $tmpl['mtitle']);
94 $meta['mdescription'] = $meta['mdescription'] = (!empty($content['anonce'])) ? str_replace("{name}",$content['anonce'], $tmpl['mdescription']) : str_replace("{name}",$content['name'], $tmpl['mdescription']);
95 $arr = explode(' ',$content['name']);
96 foreach($arr as $k=>$v){
97 $arr[$k] = trim($v);
98 if(mb_strlen($v)<4)
-
APPPATH/classes/controller/content.php [ 93 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(21) "Undefined index: name"
2
string(89) "/var/wwwold/vetschool.fauna-servis.ua/WebPages/application/classes/controller/content.php"
3
integer 93
4
array(12) ( "num_page" => integer 1 "lang" => string(2) "ru" "alias" => string(15) "news_veterinary" "id" => string(3) "142" "aStruct" => array(19) ( "id" => string(2) "28" "id_parent" => string(1) "3" "passive" => string(1) "0" "controller" => string(4) "list" "alias" => string(15) "news_veterinary" "action" => string(0) "" "layout" => string(0) "" "template" => string(0) "" "level" => string(0) "" "order_item" => string(1) "1" "do_comments" => string(1) "0" "comments_permission" => string(0) "" "date_create" => string(19) "2013-03-13 12:57:45" "date_modify" => string(19) "2016-04-04 21:38:55" "id_language" => string(2) "ru" "name" => string(46) "Анонсы мероприятий Школы" "active" => string(1) "1" "show_in_menu" => string(1) "1" "hot_menu" => string(1) "0" ) "aParentStructure" => array(19) ( "id" => string(1) "3" "id_parent" => string(1) "0" "passive" => string(1) "0" "controller" => string(4) "page" "alias" => string(8) "calendar" "action" => string(0) "" "layout" => string(0) "" "template" => string(0) "" "level" => string(3) "1,2" "order_item" => string(1) "3" "do_comments" => string(1) "0" "comments_permission" => string(0) "" "date_create" => string(19) "2013-02-25 17:47:02" "date_modify" => string(19) "2013-10-22 00:12:59" "id_language" => string(2) "ru" "name" => string(14) "События" "active" => string(1) "1" "show_in_menu" => string(1) "1" "hot_menu" => string(1) "0" ) "meta" => array(5) ( "mtitle" => string(82) "Школа обмена опытом для ветеринарных врачей " "mdescription" => string(81) "Школа обмена опытом для ветеринарных врачей" "mkeywords" => string(81) "Школа обмена опытом для ветеринарных врачей" "msubject" => string(81) "Школа обмена опытом для ветеринарных врачей" "mcopyright" => string(0) "" ) "tmpl" => array(5) ( "mtitle" => string(6) "{name}" "mdescription" => string(6) "{name}" "mkeywords" => string(28) "Ключевые, слова" "msubject" => string(0) "" "mcopyright" => string(0) "" ) "aParam" => array(3) ( "id" => string(3) "142" "id_structure" => string(2) "28" "id_language" => string(2) "ru" ) "content" => array(0) "m" => array(0) "this" => object Controller_Content(7)
{ public auto_render => bool FALSE public template => object View(2)
){ protected _file => string(90) "/var/wwwold/vetschool.fauna-servis.ua/WebPages/application/views/layout/layout_current.php" protected _data => array(0) }
public oModel => NULL public sPathTemplateDir => string(0) "" public sAddForm => string(0) "" public request => object Request(21){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(38) "(<lang>/)(<controller>/)<alias>(/<id>)" protected _regex => array(5) ( "lang" => string(16) "[a-zA-Z][a-zA-Z]" "controller" => string(7) "content" "action" => string(5) "index" "alias" => string(13) "[a-zA-Z0-9_]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(7) "content" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>[a-zA-Z][a-zA-Z])/)?(?:(?P<controller>content)/)?(?P<alias>[a-zA-Z0-9_]+)(?:/(?P<id>[0-9]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "content" protected _action => string(5) "index" protected _uri => string(19) "news_veterinary/142" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(0) "" "alias" => string(15) "news_veterinary" "id" => string(3) "142" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }88 89 if($aData['mcopyright']) $meta['mcopyright'] = str_replace("{name}",$content['name'], $aData['mcopyright']); 90 else $meta['mcopyright'] = str_replace("{name}",$content['name'], $tmpl['mcopyright']); 91 //Если не заданы то используем шаблон 92 } else { 93 $meta['mtitle'] = str_replace("{name}",$content['name'], $tmpl['mtitle']); 94 $meta['mdescription'] = $meta['mdescription'] = (!empty($content['anonce'])) ? str_replace("{name}",$content['anonce'], $tmpl['mdescription']) : str_replace("{name}",$content['name'], $tmpl['mdescription']); 95 $arr = explode(' ',$content['name']); 96 foreach($arr as $k=>$v){ 97 $arr[$k] = trim($v); 98 if(mb_strlen($v)<4)
-
{PHP internal call} » Controller_Content->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Content(7)
{ public auto_render => bool FALSE public template => object View(2)
{ protected _file => string(90) "/var/wwwold/vetschool.fauna-servis.ua/WebPages/application/views/layout/layout_current.php" protected _data => array(0) }
public oModel => NULL public sPathTemplateDir => string(0) "" public sAddForm => string(0) "" public request => object Request(21){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(38) "(<lang>/)(<controller>/)<alias>(/<id>)" protected _regex => array(5) ( "lang" => string(16) "[a-zA-Z][a-zA-Z]" "controller" => string(7) "content" "action" => string(5) "index" "alias" => string(13) "[a-zA-Z0-9_]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(7) "content" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>[a-zA-Z][a-zA-Z])/)?(?:(?P<controller>content)/)?(?P<alias>[a-zA-Z0-9_]+)(?:/(?P<id>[0-9]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "content" protected _action => string(5) "index" protected _uri => string(19) "news_veterinary/142" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(0) "" "alias" => string(15) "news_veterinary" "id" => string(3) "142" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(38) "(<lang>/)(<controller>/)<alias>(/<id>)" protected _regex => array(5) ( "lang" => string(16) "[a-zA-Z][a-zA-Z]" "controller" => string(7) "content" "action" => string(5) "index" "alias" => string(13) "[a-zA-Z0-9_]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(7) "content" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>[a-zA-Z][a-zA-Z])/)?(?:(?P<controller>content)/)?(?P<alias>[a-zA-Z0-9_]+)(?:/(?P<id>[0-9]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "content" protected _action => string(5) "index" protected _uri => string(19) "news_veterinary/142" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(0) "" "alias" => string(15) "news_veterinary" "id" => string(3) "142" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(38) "(<lang>/)(<controller>/)<alias>(/<id>)" protected _regex => array(5) ( "lang" => string(16) "[a-zA-Z][a-zA-Z]" "controller" => string(7) "content" "action" => string(5) "index" "alias" => string(13) "[a-zA-Z0-9_]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "controller" => string(7) "content" "action" => string(5) "index" ) protected _route_regex => string(111) "#^(?:(?P<lang>[a-zA-Z][a-zA-Z])/)?(?:(?P<controller>content)/)?(?P<alias>[a-zA-Z0-9_]+)(?:/(?P<id>[0-9]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "content" protected _action => string(5) "index" protected _uri => string(19) "news_veterinary/142" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(0) "" "alias" => string(15) "news_veterinary" "id" => string(3) "142" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 111 ] » Kohana_Request->execute()
106 /** 107 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 108 * If no source is specified, the URI will be automatically detected. 109 */ 110 echo Request::factory() 111 ->execute() 112 ->send_headers() 113 ->body();