本文整理汇总了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);
}
}