MODPATH/custom/vanityurl/classes/controller/vanityurl.php [ 9 ]
4
5 public static function redirect() {
6
7 if ( count( Orm::factory("Vanityurl")->where("source_url", "=" , Request::initial()->uri())->find_all() )) {
8
9 Request::current()->redirect( $model->dest_url , 301);
10 }
11 }
12 }
-
MODPATH/custom/vanityurl/classes/controller/vanityurl.php [ 9 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(25) "Undefined variable: model"
2
string(93) "/var/www/pgahomerentals.com/docroot/modules/custom/vanityurl/classes/controller/vanityurl.php"
3
integer 9
4
array(0)
4 5 public static function redirect() { 6 7 if ( count( Orm::factory("Vanityurl")->where("source_url", "=" , Request::initial()->uri())->find_all() )) { 8 9 Request::current()->redirect( $model->dest_url , 301); 10 } 11 } 12 }
-
{PHP internal call} » Controller_Vanityurl::redirect()
-
MODPATH/filters/classes/filters.php [ 49 ] » call_user_func_array(arguments)
function_name
array(2) ( 0 => string(20) "Controller_Vanityurl" 1 => string(8) "redirect" )
parameters
array(0)
44 $params = array(); 45 } 46 47 //return call_user_func_array($callback, $params); 48 //$singleResponse = call_user_func_array($callback, $params); 49 $Response[] = call_user_func_array($callback, $params); 50 $i++; 51 } 52 53 if (isset($Response)) { 54 if ($array) {
-
MODPATH/atlantis/classes/controller/atlantis.php [ 137 ] » Filters::run(arguments)
0
string(17) "page.prediscovery"
132 if (is_file(DOCROOT . 'media/css/' . I18n::$lang . ".css")) { 133 134 $this->template->styles = Filters::run('styles.from.file', array(I18n::$lang)); 135 } 136 137 Filters::run('page.prediscovery'); // hook just listen 138 139 /** 140 * Fetch the main Request 141 */ 142 $oPage = Model::factory('page')->getPage();
-
{PHP internal call} » Controller_Atlantis->action_page()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Atlantis(8)
{ public template => object View(2)
{ protected _file => string(74) "/var/www/pgahomerentals.com/docroot/modules/atlantis/views/pages/shell.php" protected _data => array(6) ( "title" => string(0) "" "meta_description" => string(0) "" "meta_keywords" => string(0) "" "styles" => array(0) "scripts" => array(0) "show_profiler" => bool FALSE ) }
public require_ssl => bool FALSE public aAtlantis_Config => array(22) ( "version" => string(5) "1.6.2" "admin_perpage_selector" => array(2) ( "default" => string(2) "15" "option" => array(3) ( 0 => string(2) "15" 1 => string(2) "25" 2 => string(2) "35" ) ) "site_name" => string(0) "" "domain_name" => string(0) "" "admin_shell_view" => string(17) "admin/admin-shell" "frontend_shell_view" => string(11) "pages/shell" "default_404_view" => string(9) "pages/404" "default_language" => string(2) "en" "admin_items_per_page" => string(2) "25" "allowed_max_filesize" => string(4) "10mb" "user_media_upload" => string(11) "media/user/" "static_images" => array(1) ( "Static Header" => array(2) ( "fullsize" => array(1) ( 1024 => string(3) "768" ) "thumbnail" => array(1) ( 200 => string(3) "150" ) ) ) "responsive_images" => array(3) ( "Responsive Header" => array(4) ( "desktop" => array(2) ( "width" => string(4) "1024" "height" => string(3) "768" ) "tablet" => array(2) ( "width" => string(3) "640" "height" => string(3) "480" ) "phone" => array(2) ( "width" => string(3) "320" "height" => string(3) "240" ) "thumbnail" => array(2) ( "width" => string(3) "150" "height" => string(3) "150" ) ) "Responsive Gallery" => array(4) ( "desktop" => array(2) ( "width" => string(4) "1024" "height" => string(3) "768" ) "tablet" => array(2) ( "width" => string(3) "640" "height" => string(3) "480" ) "phone" => array(2) ( "width" => string(3) "320" "height" => string(3) "240" ) "thumbnail" => array(2) ( "width" => string(3) "300" "height" => string(3) "300" ) ) "Test Gallery" => array(4) ( "desktop" => array(2) ( "width" => string(4) "1024" "height" => string(3) "576" ) "tablet" => array(2) ( "width" => string(3) "640" "height" => string(3) "360" ) "phone" => array(2) ( "width" => string(3) "320" "height" => string(3) "180" ) "thumbnail" => array(2) ( "width" => string(3) "300" "height" => string(3) "300" ) ) ) "allowed_image_extensions" => array(4) ( 0 => string(3) "gif" 1 => string(3) "png" 2 => string(3) "jpg" 3 => string(4) "jpeg" ) "allowed_others_extensions" => array(2) ( 0 => string(3) "pdf" 1 => string(3) "txt" ) "show_shortcut_bar" => bool FALSE "cache" => bool FALSE "cache_lifetime" => string(4) "3600" "allow_mobile_pages" => bool FALSE "default_styles" => array(0) "default_scripts" => array(4) ( 0 => string(44) "https://code.jquery.com/jquery-1.11.0.min.js" 1 => string(34) "/media/js/min/jquery.cycle2.min.js" 2 => string(40) "/media/js/min/jquery.cycle2.swipe.min.js" 3 => string(19) "/media/js/global.js" ) "activation_code" => string(23) "9cf7b-6fb39-9f736-fa5c4" ) protected oPattModel => object Model_Pattern(36){ public validation_required => bool TRUE protected _has_many => array(2) ( "patterns_version" => array(4) ( "model" => string(16) "patterns_version" "foreign_key" => string(10) "pattern_id" "through" => NULL "far_key" => string(19) "patterns_version_id" ) 0 => array(5) ( "model" => string(1) "0" "foreign_key" => string(10) "pattern_id" "through" => NULL "far_key" => string(4) "0_id" "patt_fields" => array(2) ( "model" => string(11) "patt_fields" "foreign_key" => string(10) "pattern_id" ) ) ) protected errors => array(0) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(10) ( "id" => NULL "name" => NULL "url" => NULL "type" => NULL "outputs" => NULL "weight" => NULL "status" => NULL "start_date" => NULL "end_date" => NULL "mobile" => NULL ) protected _changed => array(0) protected _original_values => array(0) protected _related => array(0) protected _valid => bool FALSE protected _loaded => bool FALSE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(7) "pattern" protected _object_plural => string(8) "patterns" protected _table_name => string(8) "patterns" protected _table_columns => array(10) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "url" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "url" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "type" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "type" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 4 "character_maximum_length" => string(2) "10" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "outputs" => array(12) ( "type" => string(6) "string" "column_name" => string(7) "outputs" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "weight" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(6) "weight" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 6 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "status" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(6) "status" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 7 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "start_date" => array(10) ( "type" => string(6) "string" "column_name" => string(10) "start_date" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool TRUE "ordinal_position" => integer 8 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "end_date" => array(10) ( "type" => string(6) "string" "column_name" => string(8) "end_date" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool TRUE "ordinal_position" => integer 9 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "mobile" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "mobile" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 10 "character_maximum_length" => string(2) "45" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => NULL protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)
public lang => NULL public auto_render => bool TRUE public request => object Request(20){ protected _connection_id => string(40) "dfa735cf2ec9e82f6641a193221e643d0316b4c2" protected _identifier => string(1) "`" public last_query => string(178) "SELECT `vanityurl`.`id` AS `id`, `vanityurl`.`source_url` AS `source_url`, `vanityurl`.`dest_url` AS `dest_url` FROM `vanityurl` …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(7) "pattern" }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(7) ( "type" => string(6) "MySQLi" "connection" => array(5) ( "hostname" => string(9) "localhost" "database" => string(8) "pgahr_db" "port" => string(4) "3306" "socket" => NULL "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE "port" => string(4) "3307" ) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(41) "http://www.pgahomerentals.com/listing/320" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(17) "(<lang>/)(<page>)" protected _regex => array(2) ( "lang" => string(8) "[a-z]{2}" "page" => string(2) ".*" ) protected _defaults => array(4) ( "controller" => string(8) "atlantis" "action" => string(4) "page" "page" => string(5) "index" "lang" => string(2) "en" ) protected _route_regex => string(47) "#^(?:(?P<lang>[a-z]{2})/)?(?:(?P<page>.*))?$#uD" }
protected _routes => array(0) 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.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "atlantis" protected _action => string(4) "page" protected _uri => string(11) "listing/320" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "en" "page" => string(11) "listing/320" ) 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 }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(41) "http://www.pgahomerentals.com/listing/320" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(17) "(<lang>/)(<page>)" protected _regex => array(2) ( "lang" => string(8) "[a-z]{2}" "page" => string(2) ".*" ) protected _defaults => array(4) ( "controller" => string(8) "atlantis" "action" => string(4) "page" "page" => string(5) "index" "lang" => string(2) "en" ) protected _route_regex => string(47) "#^(?:(?P<lang>[a-z]{2})/)?(?:(?P<page>.*))?$#uD" }
protected _routes => array(0) 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.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "atlantis" protected _action => string(4) "page" protected _uri => string(11) "listing/320" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "en" "page" => string(11) "listing/320" ) 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 }
}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 [ 1154 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(41) "http://www.pgahomerentals.com/listing/320" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(17) "(<lang>/)(<page>)" protected _regex => array(2) ( "lang" => string(8) "[a-z]{2}" "page" => string(2) ".*" ) protected _defaults => array(4) ( "controller" => string(8) "atlantis" "action" => string(4) "page" "page" => string(5) "index" "lang" => string(2) "en" ) protected _route_regex => string(47) "#^(?:(?P<lang>[a-z]{2})/)?(?:(?P<page>.*))?$#uD" }
protected _routes => array(0) 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.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "atlantis" protected _action => string(4) "page" protected _uri => string(11) "listing/320" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "en" "page" => string(11) "listing/320" ) 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 }
}1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 112 ] » Kohana_Request->execute()
107 * If no source is specified, the URI will be automatically detected. 108 */ 109 110 try { 111 echo Request::factory() 112 ->execute() 113 ->send_headers(TRUE) 114 ->body(); 115 } 116 catch( HTTP_Exception $e ){ 117 var_dump($e->getmessage());