Skip to content

Instantly share code, notes, and snippets.

@neo22s
Created May 15, 2015 11:14
Show Gist options
  • Save neo22s/f85c9deaeba5116e7fe5 to your computer and use it in GitHub Desktop.
Save neo22s/f85c9deaeba5116e7fe5 to your computer and use it in GitHub Desktop.
listing.php
<?php defined('SYSPATH') or die('No direct script access.');?>
<?if (Model_Category::current()->loaded() AND Model_Category::current()->id_category!=1):?>
<?=View::factory('pages/ad/listing_overview')?>
<?else:?>
the HMTL you had before that loads categories
<?endif?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment