ErrorException [ Fatal Error ]:
APPPATH/views/page/home.php [ 0 ]
1 <?php defined('SYSPATH') or die('No direct script access.'); ?>
<?php if ($_GET['vsn']) : ?>
<?= View::factory('include/vehicle')->bind('stock', $_GET['vsn']); ?>
<?php else : ?>
<?php $types = array('new', 'New', 'NEW', 'used', 'Used', 'USED'); ?>
<?php $type = (in_array($_GET['type'], $types)) ? $_GET['type'] : false; ?>
<?php $make = ($_GET['make']) ? str_replace("_", " ", $_GET['make']) : false; ?>
<?php $inv = ($type) ? DB::select()->from('trailers')->where('type', '=', $type)->where('sold', '=', 0) : DB::select()->from('trailers')->where('type', 'IN', array('new', 'used'))->where('sold', '=', 0); ?>
<?php $inv = ($make) ? $inv->where('make', '=', $make) : $inv; ?>
<?php $inventory = $inv->limit(30)->execute()->as_array(); ?>
<?php $c = ($type) ? DB::select(array(DB::expr('COUNT("stock")'), 'count_all'))->from('trailers')->where('type', '=', $type) : DB::select(array(DB::expr('COUNT("stock")'), 'count_all'))->from('trailers')->where('type', 'IN', array('new', 'used')); ?>
<?php $c = ($make) ? $c->where('make', '=', $make) : $c; ?>
<?php $count = $c->execute()->get("count_all"); ?>
<?php $currpage = 1; ?>
<?php $makes = ($type) ? ORM::factory('inventory')->where('type', '=', $type)->order_by('make')->where('sold', '=', 0)->group_by('make')->find_all() : ORM::factory('inventory')->where('type', 'IN', array('new', 'used'))->where('sold', '=', 0)->order_by('make')->group_by('make')->find_all(); ?>
<?php if ($make) : ?>
<?php $models = ($type) ? ORM::factory('inventory')->where('make', '=', $make)->where('type', '=', $type)->order_by('model')->group_by('model')->find_all() : ORM::factory('inventory')->where('make', '=', $make)->where('type', 'IN', array('new', 'used'))->order_by('model')->group_by('model')->find_all(); ?>
<?php $filtertype = 'model'; ?>
<?php $vals = array(); ?>
<?php foreach ($models as $m) : ?>
<?php $vals[$m->model] = 1; ?>
<?php endforeach; ?>
<?php $modopts = View::factory('include/filteropts')->bind('vals', $vals)->bind('type', $filtertype); ?>
<?php endif; ?>
<div class="row-fluid">
<!-- CONTROLS -->
<div class="span3">
<div class="sidebar-nav">
<form name="filterinv" method="post" action="/process/inv/filter">
<input type="hidden" name="page" value="1" />
<input type="hidden" name="current" value="type" />
<h1 class="filter-head"><strong>Filter Inventory</strong></h1>
<div id="load-type" class="filters">
<div class="filter-inner">
<h2 class="opt-head"><strong>Type</strong></h2>
<div style="width: 50%; float: left">
<input class="load-filter" name="type[]" type="checkbox" <?= (!$type || $type == 'new') ? "CHECKED" : ""; ?> value="new" /> New
</div>
<div style="width: 50%; float: left">
<input class="load-filter" name="type[]" type="checkbox" <?= (!$type || $type == 'used') ? "CHECKED" : ""; ?> value="used" /> Used
</div>
<div class="clearfix"></div>
</div>
</div>
<div id="load-make" class="filters">
<div class="filter-inner">
<h2 class="opt-head">
<strong>Make</strong>
<i class="icon icon-minus pull-right min" data-toggle="make-opts"></i>
</h2>
<div id="make-opts">
<?php foreach ($makes as $m) : ?>
<div style="width: 50%; float: left">
<input class="load-filter" name="make[]" type="checkbox" <?= ($make && strcasecmp($make, trim($m->make)) == 0) ? "CHECKED" : ""; ?> value="<?= $m->make ?>" /> <?= $m->make ?>
</div>
<?php endforeach; ?>
<div class="clearfix"></div>
</div>
</div>
</div>
<div id="load-model" class="filters">
<?= ($modopts) ? $modopts : ''; ?>
</div>
<!--<div id="load-exteriorcolor" class="filters"></div>
<div id="load-interiorcolor" class="filters"></div>
<div id="load-body" class="filters"></div>
<div id="load-transmission" class="filters"></div>-->
<div id="load-year" class="filters"></div>
</form>
<div style="padding: 0px 10px 40px 10px;">
<button class="btn btn-warning btn-block" id="run-filter">
<strong>Filter Inventory</strong>
</button>
</div>
</div>
</div>
<!-- INVENTORY -->
<div class="span9" id="inv-list">
<?php echo View::factory('include/inventory')->bind('inventory', $inventory)->bind('count', $count)->bind('currpage', $currpage); ?>
</div>
<!-- END INVENTORY -->
</div>
<?php endif; ?>
-
{PHP internal call} » Kohana_Core::shutdown_handler()
Environment
Included files (78)
DOCROOT/index.php |
APPPATH/bootstrap.php |
SYSPATH/classes/Kohana/Core.php |
SYSPATH/classes/Kohana.php |
SYSPATH/classes/I18n.php |
SYSPATH/classes/Kohana/I18n.php |
SYSPATH/classes/Cookie.php |
SYSPATH/classes/Kohana/Cookie.php |
SYSPATH/classes/Kohana/Exception.php |
SYSPATH/classes/Kohana/Kohana/Exception.php |
SYSPATH/classes/Log.php |
SYSPATH/classes/Kohana/Log.php |
SYSPATH/classes/Config.php |
SYSPATH/classes/Kohana/Config.php |
SYSPATH/classes/Log/File.php |
SYSPATH/classes/Kohana/Log/File.php |
SYSPATH/classes/Log/Writer.php |
SYSPATH/classes/Kohana/Log/Writer.php |
SYSPATH/classes/Config/File.php |
SYSPATH/classes/Kohana/Config/File.php |
SYSPATH/classes/Kohana/Config/File/Reader.php |
SYSPATH/classes/Kohana/Config/Reader.php |
SYSPATH/classes/Kohana/Config/Source.php |
SYSPATH/classes/Route.php |
SYSPATH/classes/Kohana/Route.php |
SYSPATH/classes/Request.php |
SYSPATH/classes/Kohana/Request.php |
SYSPATH/classes/HTTP/Request.php |
SYSPATH/classes/Kohana/HTTP/Request.php |
SYSPATH/classes/HTTP/Message.php |
SYSPATH/classes/Kohana/HTTP/Message.php |
SYSPATH/classes/HTTP/Header.php |
SYSPATH/classes/Kohana/HTTP/Header.php |
SYSPATH/classes/Request/Client/Internal.php |
SYSPATH/classes/Kohana/Request/Client/Internal.php |
SYSPATH/classes/Request/Client.php |
SYSPATH/classes/Kohana/Request/Client.php |
SYSPATH/classes/Arr.php |
SYSPATH/classes/Kohana/Arr.php |
SYSPATH/classes/Response.php |
SYSPATH/classes/Kohana/Response.php |
SYSPATH/classes/HTTP/Response.php |
SYSPATH/classes/Kohana/HTTP/Response.php |
SYSPATH/classes/Profiler.php |
SYSPATH/classes/Kohana/Profiler.php |
APPPATH/classes/Controller/Display.php |
SYSPATH/classes/Controller/Template.php |
SYSPATH/classes/Kohana/Controller/Template.php |
SYSPATH/classes/Controller.php |
SYSPATH/classes/Kohana/Controller.php |
SYSPATH/classes/View.php |
SYSPATH/classes/Kohana/View.php |
APPPATH/views/templates/default.php |
APPPATH/views/page/home.php |
APPPATH/views/include/vehicle.php |
MODPATH/orm/classes/ORM.php |
MODPATH/orm/classes/Kohana/ORM.php |
SYSPATH/classes/Model.php |
SYSPATH/classes/Kohana/Model.php |
APPPATH/classes/Model/inventory.php |
SYSPATH/classes/Inflector.php |
SYSPATH/classes/Kohana/Inflector.php |
SYSPATH/config/inflector.php |
SYSPATH/classes/Config/Group.php |
SYSPATH/classes/Kohana/Config/Group.php |
MODPATH/database/classes/Database.php |
MODPATH/database/classes/Kohana/Database.php |
MODPATH/database/config/database.php |
APPPATH/config/database.php |
MODPATH/database/classes/Database/MySQL.php |
MODPATH/database/classes/Kohana/Database/MySQL.php |
SYSPATH/classes/Debug.php |
SYSPATH/classes/Kohana/Debug.php |
SYSPATH/classes/Date.php |
SYSPATH/classes/Kohana/Date.php |
SYSPATH/views/kohana/error.php |
SYSPATH/classes/HTML.php |
SYSPATH/classes/Kohana/HTML.php |
Loaded extensions (65)
Core |
date |
libxml |
openssl |
pcre |
zlib |
filter |
hash |
pcntl |
Reflection |
SPL |
session |
standard |
cgi-fcgi |
bcmath |
bz2 |
calendar |
ctype |
curl |
dba |
dom |
enchant |
mbstring |
fileinfo |
ftp |
gd |
gettext |
gmp |
iconv |
imap |
intl |
json |
ldap |
exif |
mysqlnd |
odbc |
PDO |
pgsql |
Phar |
posix |
pspell |
shmop |
SimpleXML |
snmp |
soap |
sockets |
sqlite3 |
sysvmsg |
sysvsem |
sysvshm |
tidy |
tokenizer |
xml |
xmlwriter |
xsl |
zip |
mysqli |
pdo_mysql |
PDO_ODBC |
pdo_pgsql |
pdo_sqlite |
wddx |
xmlreader |
xmlrpc |
ionCube Loader |
$_GET
vsn |
string(5) "11T40" |
$_SERVER
USER |
string(8) "tractors" |
HOME |
string(14) "/home/tractors" |
SCRIPT_NAME |
string(10) "/index.php" |
REQUEST_URI |
string(11) "/?vsn=11T40" |
QUERY_STRING |
string(9) "vsn=11T40" |
REQUEST_METHOD |
string(3) "GET" |
SERVER_PROTOCOL |
string(8) "HTTP/1.1" |
GATEWAY_INTERFACE |
string(7) "CGI/1.1" |
REMOTE_PORT |
string(5) "43710" |
SCRIPT_FILENAME |
string(34) "/home/tractors/inventory/index.php" |
SERVER_ADMIN |
string(41) "webmaster@inventory.youngtractorsutah.com" |
CONTEXT_DOCUMENT_ROOT |
string(24) "/home/tractors/inventory" |
CONTEXT_PREFIX |
string(0) "" |
REQUEST_SCHEME |
string(4) "http" |
DOCUMENT_ROOT |
string(24) "/home/tractors/inventory" |
REMOTE_ADDR |
string(13) "107.21.176.63" |
SERVER_PORT |
string(2) "80" |
SERVER_ADDR |
string(14) "162.214.65.188" |
SERVER_NAME |
string(31) "inventory.youngtractorsutah.com" |
SERVER_SOFTWARE |
string(6) "Apache" |
SERVER_SIGNATURE |
string(0) "" |
PATH |
string(180) "/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/ …" |
HTTP_HOST |
string(31) "inventory.youngtractorsutah.com" |
HTTP_USER_AGENT |
string(9) "claudebot" |
HTTP_ACCEPT |
string(3) "*/*" |
proxy-nokeepalive |
string(1) "1" |
SCRIPT_URI |
string(39) "http://inventory.youngtractorsutah.com/" |
SCRIPT_URL |
string(1) "/" |
UNIQUE_ID |
string(27) "ZgWGFREZq5vJYK-WuhAcQwAAAQI" |
FCGI_ROLE |
string(9) "RESPONDER" |
PHP_SELF |
string(10) "/index.php" |
REQUEST_TIME_FLOAT |
float 1711638037.8093 |
REQUEST_TIME |
integer 1711638037 |
argv |
array(1) ( 0 => string(9) "vsn=11T40" ) |
argc |
integer 1 |