本文整理汇总了PHP中Sample::all方法的典型用法代码示例。如果您正苦于以下问题:PHP Sample::all方法的具体用法?PHP Sample::all怎么用?PHP Sample::all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sample
的用法示例。
在下文中一共展示了Sample::all方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIndex
public function getIndex()
{
$admindata = Sample::all();
$userdata = json_decode($admindata);
if ($userdata) {
$senddata = $userdata->subUsers;
}
return View::make('retailer.subretailer.manageview')->with('senddata', $senddata);
}
示例2: getAdd
public function getAdd()
{
$admindata = Sample::all();
$userdata = json_decode($admindata);
if ($userdata) {
$senddata = $userdata->subUsers;
}
return View::make('superadmin.creditdebit.addview')->with('senddata', $senddata);
}
示例3: getAdd
public function getAdd()
{
$admindata = Sample::all();
$userdata = json_decode($admindata);
if ($userdata && $userdata->status == "success") {
$senddata = $userdata->subUsers;
return View::make('admin.creditdebit.addview')->with('senddata', $senddata);
} else {
return Redirect::to('admin/noservice');
}
}
示例4: getIndex
public function getIndex()
{
$admindata = Sample::all();
$userdata = json_decode($admindata);
if ($userdata && ($userdata->status = "success")) {
$senddata = $userdata->subUsers;
return View::make('superadmin.admin.manageview')->with('senddata', $senddata);
} else {
return View::make('superadmin.service');
}
}
示例5: getIndex
public function getIndex()
{
$admindata = Sample::all();
$userdata = json_decode($admindata);
if ($userdata) {
$senddata = $userdata->subUsers;
return View::make('admin.franchise.manageview')->with('senddata', $senddata);
} else {
return Redirect::to('admin/noservice');
}
}
示例6: getAdd
public function getAdd()
{
$data = Sample::all();
$senddata = json_decode($data);
if ($senddata) {
$userdata = $senddata->subUsers;
}
$categorydata = Sample::category(Session::get('user_name'));
if ($categorydata) {
$category = $categorydata->categories;
$products = $categorydata->products;
}
return View::make('superadmin.retailer.addview')->with('userdata', $userdata)->with('category', $category)->with('products', $products);
}
示例7: getAdd
public function getAdd()
{
$data = Sample::all();
//print_r($data); exit;
$senddata1 = json_decode($data);
$senddata = $senddata1->subUsers;
$categorydata = Sample::category(Session::get('user_name'));
if ($categorydata) {
$category = $categorydata->categories;
$products = $categorydata->products;
} else {
$category = '';
$products = '';
}
return View::make('franchise.subretailer.addview')->with('senddata', $senddata)->with('category', $category)->with('products', $products);
}
示例8: getAdd
public function getAdd()
{
$data = Sample::all();
//print_r($data); exit;
$senddata1 = json_decode($data);
if ($senddata1 && $senddata1->status == "success") {
$senddata = $senddata1->subUsers;
$categorydata = Sample::category(Session::get('user_name'));
if ($categorydata) {
$category = $categorydata->categories;
$products = $categorydata->products;
} else {
$category = '';
$products = '';
}
return View::make('superadmin.superdistributor.addview')->with('userdata', $senddata)->with('category', $category)->with('products', $products);
} else {
return Redirect::to('superadmin/noservice');
}
}
示例9: homepage
public function homepage()
{
$samples = Sample::all();
foreach ($samples as $sample) {
$sample->filesize = $this->human_filesize($sample->filesize);
}
$this->layout->content = View::make('index')->with('files', $samples);
}