本文整理匯總了PHP中BaseController::seccionesDinamicas方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::seccionesDinamicas方法的具體用法?PHP BaseController::seccionesDinamicas怎麽用?PHP BaseController::seccionesDinamicas使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseController
的用法示例。
在下文中一共展示了BaseController::seccionesDinamicas方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: vistaEditar
public function vistaEditar($id, $next)
{
//Me quedo con el item, buscando por id
$evento = Evento::find($id);
$secciones = parent::seccionesDinamicas();
if ($evento) {
$this->array_view['item'] = $evento->texto()->item();
$this->array_view['evento'] = $evento;
$this->array_view['secciones'] = $secciones;
$this->array_view['continue'] = $next;
return View::make($this->folder_name . '.agregar', $this->array_view);
} else {
$this->array_view['texto'] = Lang::get('controllers.error_carga_pagina');
return View::make($this->project_name . '-error', $this->array_view);
}
}
示例2: vistaEditar
public function vistaEditar($id, $next, $seccion_next)
{
//Me quedo con el item, buscando por id
$item = Item::find($id);
$portfolio = Portfolio::find($item->portfolio()->id);
$secciones = parent::seccionesDinamicas();
if ($portfolio) {
$this->array_view['item'] = $portfolio->item();
$this->array_view['portfolio'] = $portfolio;
$this->array_view['secciones'] = $secciones;
$this->array_view['continue'] = $next;
$this->array_view['seccion_next'] = $seccion_next;
return View::make($this->folder_name . '.editar', $this->array_view);
} else {
$this->array_view['texto'] = Lang::get('controllers.error_carga_pagina');
return View::make($this->project_name . '-error', $this->array_view);
}
}
示例3: vistaEditar
public function vistaEditar($id, $next, $seccion_next)
{
//Me quedo con el item, buscando por id
$noticia = Noticia::find($id);
$secciones = parent::seccionesDinamicas();
if ($noticia) {
$this->array_view['item'] = $noticia->texto()->item();
$this->array_view['noticia'] = $noticia;
$this->array_view['secciones'] = $secciones;
$this->array_view['continue'] = $next;
$this->array_view['seccion_next'] = $seccion_next;
$seccion = $this->array_view['item']->seccionItem();
$modulo = $seccion->menuSeccion()->modulo();
$this->array_view['menues'] = $modulo->menus;
return View::make($this->folder_name . '.editar', $this->array_view);
} else {
$this->array_view['texto'] = Lang::get('controllers.error_carga_pagina');
return View::make($this->project_name . '-error', $this->array_view);
}
}