当前位置: 首页>>代码示例>>PHP>>正文


PHP Category::getCategoriesDropDown方法代码示例

本文整理汇总了PHP中app\Category::getCategoriesDropDown方法的典型用法代码示例。如果您正苦于以下问题:PHP Category::getCategoriesDropDown方法的具体用法?PHP Category::getCategoriesDropDown怎么用?PHP Category::getCategoriesDropDown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在app\Category的用法示例。


在下文中一共展示了Category::getCategoriesDropDown方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getEdit

 public function getEdit($id)
 {
     $categories = new Category();
     $allCategory = $categories->getCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $subCategory = SubCategory::find($id);
     return view('ProductSubCategory.edit', compact('branchAll'))->with('subCategory', $subCategory)->with('categoryAll', $allCategory);
 }
开发者ID:woakes070048,项目名称:cemcoErp,代码行数:9,代码来源:ProductSubCategoryController.php

示例2: getStockProducts

 public function getStockProducts()
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $catogories = new Category();
     $categoriesAll = $catogories->getCategoriesDropDown();
     $products = new Product();
     $productAll = $products->getProductsWithCategories();
     return view('Searches.stockProduct', compact('productAll'))->with('categoriesAll', $categoriesAll)->with('allStockInfos', $allStockInfos)->with('branchAll', $branchAll);
 }
开发者ID:woakes070048,项目名称:cemcoErp,代码行数:12,代码来源:SearchController.php

示例3: postStocksproductsresult

 public function postStocksproductsresult()
 {
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $catogories = new Category();
     $categoriesAll = $catogories->getCategoriesDropDown();
     $report = new Report();
     $branch_id = Input::get('branch_id');
     $stock_info_id = Input::get('stock_info_id');
     $category_id = Input::get('category_id');
     $product_type = Input::get('product_type');
     $results = $report->getStockReportResult($stock_info_id, $product_type, $branch_id, $category_id);
     return view('Reports.stockProductsReport')->with('stock_info_id', $stock_info_id)->with('branch_id', $branch_id)->with('category_id', $category_id)->with('product_type', $product_type)->with('results', $results)->with('branchAll', $branchAll)->with('allStockInfos', $allStockInfos)->with('categoriesAll', $categoriesAll);
 }
开发者ID:woakes070048,项目名称:cemcoErp,代码行数:16,代码来源:ReportController.php


注:本文中的app\Category::getCategoriesDropDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。