Warning (2): Invalid argument supplied for foreach() [CORE/app/views/elements/smenu.thtml, line 121]
$this = View object $___viewFn = "/home/missouri/public_html/app/views/elements/smenu.thtml" $___dataForView = array("urlsc" => "&nu=&make=&year=&yearTo=&cont=&model=&price=&priceTo=&orderBy=&cont=", "searchCriteria" => "Moberly Motor Company", "paging" => array, "bydealername" => array, "pagination" => PaginationHelper object, "html" => HtmlHelper object, "ajax" => AjaxHelper object, "javascript" => JavascriptHelper object, "form" => FormHelper object, "session" => SessionHelper object) $loadHelpers = false $cached = false $urlsc = "&nu=&make=&year=&yearTo=&cont=&model=&price=&priceTo=&orderBy=&cont=" $searchCriteria = "Moberly Motor Company" $paging = array("importParams" => array, "Defaults" => array, "show" => 10, "page" => 1, "sortBy" => "id", "sortByClass" => "Sdealer", "direction" => "ASC", "ajaxDivUpdate" => "content", "ajaxFormId" => null, "maxPages" => 10, "showLimits" => true, "style" => "html", "paramStyle" => "get", "paramSeperator" => "/", "url" => "/sdealer", "total" => "87", "resultsPerPage" => array, "pageCount" => 9) $bydealername = array(0 => array, 1 => array, 2 => array, 3 => array, 4 => array, 5 => array, 6 => array, 7 => array, 8 => array, 9 => array) $pagination = PaginationHelper object $html = HtmlHelper object $ajax = AjaxHelper object $javascript = JavascriptHelper object $form = FormHelper object $session = SessionHelper object $BASE = "" $params = array("pass" => array, "controller" => "sdealer", "action" => "index", "url" => array, "bare" => 0, "webservices" => null, "plugin" => null, "models" => array) $page_title = "Search Results for Moberly Motor Company" $yeardata = "year.txt" $makedata = "make.txt" $modeldata = ".txt" $smnu = "" $smmake = "" $smmodel = "" $smyear = "" $smyearTo = "" $smprice = "" $smpriceTo = "" $smorderBy = "" $smcont = "" $smzip = "" $smradius = "" $byyear = array(0 => "2010", 1 => "2009", 2 => "2008", 3 => "2007", 4 => "2006", 5 => "2005", 6 => "2004", 7 => "2003", 8 => "2002", 9 => "2001", 10 => "2000", 11 => "1999", 12 => "1998", 13 => "1997", 14 => "1996", 15 => "1995", 16 => "1994", 17 => "1993", 18 => "1992", 19 => "1991", 20 => "1990", 21 => "1989", 22 => "1988", 23 => "1987", 24 => "1985", 25 => "1984", 26 => "1983", 27 => "1981", 28 => "1980", 29 => "1975", 30 => "1969", 31 => "1957", 32 => "1955") $bymake = array(0 => "Acura", 1 => "Audi", 2 => "BMW", 3 => "BUICK", 4 => "CADI", 5 => "CADILLAC", 6 => "Chevrolet", 7 => "CHRYSLER", 8 => "Daewoo", 9 => "DODGE", 10 => "FORD", 11 => "Geo", 12 => "GMC", 13 => "Harley-Davidson", 14 => "HONDA", 15 => "HUMMER", 16 => "HYUNDAI", 17 => "Infiniti", 18 => "Isuzu", 19 => "Jaguar", 20 => "JEEP", 21 => "Kia", 22 => "Land", 23 => "LAND ROVER", 24 => "Lexus", 25 => "LINCOLN", 26 => "Mazda", 27 => "Mercedes-Benz", 28 => "MERCURY", 29 => "MINI", 30 => "Mitsubishi", 31 => "NISSAN", 32 => "OLDSMOBILE", 33 => "PLYMOUTH", 34 => "PONTIAC", 35 => "Porsche", 36 => "Saab", 37 => "SATURN", 38 => "Scion", 39 => "Smart", 40 => "Subaru", 41 => "SUZUKI", 42 => "TOYOTA", 43 => "Triumph", 44 => "Volkswagen", 45 => "Volvo") $bymodel = null $make = "Volvo" $year = "1955" $tmpcont = "Text Search"
<div id="model_list" class="searchMenu"> <select name="model" id="model" class="searchMenu"> <option <?php if($smmodel == "") echo "selected" ?> value="">(All Models)</option> <?php foreach ($bymodel as $model): ?> <option <?php if($smmodel == $model) echo "selected" ?> value="<?php echo $model ?>"><?php echo $model ?></option>
<div id="model_list" class="searchMenu">
<select name="model" id="model" class="searchMenu">
<option <?php if($smmodel == "") echo "selected" ?> value="">(All Models)</option>
<?php foreach ($bymodel as $model): ?>
<option <?php if($smmodel == $model) echo "selected" ?> value="<?php echo $model ?>"><?php echo $model ?></option>
include - CORE/app/views/elements/smenu.thtml, line 121 View::_render() - CORE/cake/libs/view/view.php, line 772 View::renderElement() - CORE/cake/libs/view/view.php, line 400 include - CORE/app/views/sdealer/index.thtml, line 45 View::_render() - CORE/cake/libs/view/view.php, line 772 View::render() - CORE/cake/libs/view/view.php, line 337 Controller::render() - CORE/cake/libs/controller/controller.php, line 663 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 356 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 333 [main] - CORE/app/webroot/index.php, line 83