Skip to content

Instantly share code, notes, and snippets.

Jhonatta Santos JhonattaSantos

Block or report user

Report or block JhonattaSantos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View trait controller
namespace App\Http\Controllers;
use Illuminate\Http\Request;
trait ApiControllerTrait
protected $relationships = [];
* Display a listing of the resource.
JhonattaSantos / menu_Category.php
Created Jun 25, 2017
Menu de categoria wordpress modelo bootstrap
View menu_Category.php
$categories = get_categories(['parent'=>0]);
foreach($categories as $category):
$childCategories = get_categories(['child_of' => $category->cat_ID]);
$link = get_category_link($category->term_id);
$title = $category->name;
printf('<li><a href="%s">%s</a></li>',$link,$title);
echo '<li>';
printf('<a href="#" class="dropdown-toggle" data-toggle="dropdown"
View Xml Proposto Produtos
<descricao_grupo>CATEGORIA TEST</descricao_grupo>
<descricao_produto>PRODUTO TEST</descricao_produto>
<texto_produto>DESCRICAO PRODUTO TEST</texto_produto>
You can’t perform that action at this time.