MODPATH/admin/classes/Model/Product/Item.php [ 134 ]
129 $product_image->save();
130 }
131 }
132 }
133
134 public function create($values) {
135 $values['created'] = date('Y-m-d H:i:s');
136 $this->values($values);
137 $item = parent::create();
138 if ($item->loaded()) {
139 $this->upload_image($values);
-
MODPATH/admin/classes/Model/Product/Item.php [ 5 ] » Kohana_Core::error_handler(arguments)
0
integer 2
1
string(127) "Declaration of Model_Product_Item::create($values) should be compatible with Kohana_ORM::create(?Validation $validation = NULL)"
2
string(75) "/home/ncbj3xaqzuju/public_html/modules/admin/classes/Model/Product/Item.php"
3
integer 134
4
array(6) ( "class" => string(18) "Model_Product_Item" "directory" => string(7) "classes" "file" => string(18) "Model/Product/Item" "namespace" => string(0) "" "last_namespace_position" => bool FALSE "path" => string(75) "/home/ncbj3xaqzuju/public_html/modules/admin/classes/Model/Product/Item.php" )
1 <?php 2 3 defined('SYSPATH') OR die('No direct access allowed.'); 4 5 class Model_Product_Item extends Model_Ads_ORM { 6 7 protected $_table_name = 'product_items'; 8 protected $_has_many = array( 9 'images' => array( 10 'model' => 'Product_Image',
-
SYSPATH/classes/Kohana/Core.php [ 511 ] » require(arguments)
0
string(75) "/home/ncbj3xaqzuju/public_html/modules/admin/classes/Model/Product/Item.php"
506 $file .= str_replace('_', DIRECTORY_SEPARATOR, $class); 507 508 if ($path = Kohana::find_file($directory, $file)) 509 { 510 // Load the class file 511 require $path; 512 513 // Class has been found 514 return TRUE; 515 } 516
-
{PHP internal call} » Kohana_Core::auto_load(arguments)
0
string(18) "Model_Product_Item"
-
MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » spl_autoload_call(arguments)
class_name
string(18) "Model_Product_Item"
41 public static function factory($model, $id = NULL) 42 { 43 // Set class name 44 $model = 'Model_'.$model; 45 46 return new $model($id); 47 } 48 49 /** 50 * "Has one" relationships 51 * @var array
-
APPPATH/classes/Controller/Product.php [ 51 ] » Kohana_ORM::factory(arguments)
0
string(18) "Model_Product_Item"
1
integer 3
46 Template::page_keywords($item->keywords); 47 } 48 49 public function action_view() { 50 $id = (int) $this->request->param('id'); 51 $item = ORM::factory('Product_Item', $id); 52 if (!$item->loaded() || !$item->published) { 53 throw HTTP_Exception::factory(404, 'The requested URL :uri was not found on this server.', array( 54 ':uri' => $this->request->uri(), 55 )); 56 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Product->action_view()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Product(5)
{ public template => object View(2)
{ protected _file => string(67) "/home/ncbj3xaqzuju/public_html/application/views/template/index.php" protected _data => array(0) }
public config => object Config_Group(9){ public name => string(16) "Green Net Design" public title => string(16) "Green Net Design" public description => string(163) "Green Net Design (GND) is a Canadian entity managed by a group of engineers & professionals. GND is a leading provider of home a …" public keywords => string(34) "design, consulting, implementation" public emailto => string(20) "sales@gnetdesign.com" public emailto_name => string(5) "Admin" public emailbcc => array(1) ( "quoclong1111988@yahoo.com" => string(9) "Bcc Admin" ) public emailfrom => string(20) "admin@gnetdesign.com" public emailfrom_name => string(16) "Green Net Design" }
public auto_render => bool TRUE public request => object Request(20){ protected _uri_base => string(52) "products/smart-switches/gnds-862x-series/gnds-8621me" protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(42) "(<controller>(/<action>(/<id>(/<stuff>))))" protected _regex => array(1) ( "stuff" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(4) "Home" "action" => string(5) "index" ) protected _route_regex => string(114) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<stuff>.*))?)?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Product" protected _action => string(4) "view" protected _uri => string(14) "product/view/3" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "3" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(3)
}{ public content-type => string(24) "text/html; charset=utf-8" public connection => string(10) "keep-alive" public accept-encoding => string(13) "gzip, deflate" }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _uri_base => string(52) "products/smart-switches/gnds-862x-series/gnds-8621me" protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(42) "(<controller>(/<action>(/<id>(/<stuff>))))" protected _regex => array(1) ( "stuff" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(4) "Home" "action" => string(5) "index" ) protected _route_regex => string(114) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<stuff>.*))?)?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Product" protected _action => string(4) "view" protected _uri => string(14) "product/view/3" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "3" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(3)
{ public content-type => string(24) "text/html; charset=utf-8" public connection => string(10) "keep-alive" public accept-encoding => string(13) "gzip, deflate" }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _uri_base => string(52) "products/smart-switches/gnds-862x-series/gnds-8621me" protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(42) "(<controller>(/<action>(/<id>(/<stuff>))))" protected _regex => array(1) ( "stuff" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(4) "Home" "action" => string(5) "index" ) protected _route_regex => string(114) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<stuff>.*))?)?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Product" protected _action => string(4) "view" protected _uri => string(14) "product/view/3" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "3" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 115 ] » Kohana_Request->execute()
110 /** 111 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 112 * If no source is specified, the URI will be automatically detected. 113 */ 114 echo Request::factory(TRUE, array(), FALSE) 115 ->execute() 116 ->send_headers(TRUE) 117 ->body(); 118 }