/home/tbec71889672/public_html/src/PMCOM/Front/Category.php
* @param string $field
* @return object
*
*/
function get($id, $field = 'id')
{
$cat = $this->database->get(self::$table, array($field => $id));
$cat->url = $this->generate_url($cat->id);
return $cat;
/home/tbec71889672/public_html/src/PMCOM/Front/Category.php
* @param string $field
* @return object
*
*/
function get($id, $field = 'id')
{
$cat = $this->database->get(self::$table, array($field => $id));
$cat->url = $this->generate_url($cat->id);
return $cat;
/home/tbec71889672/public_html/src/PMCOM/Front/Product.php
}
$product->price = $discount_price;
}
$cat = new Category();
$product->return_url = Session::get('category_url') ? Session::get('category_url') : $cat->generate_url($product->category_id);
$product->parent = $cat->get( $product->category_id );
$product->guarantee = $this->database->get('product_guarantees', array('id' => $product->product_guarantee_id));
/home/tbec71889672/public_html/src/PMCOM/Core/Router.php
} elseif( $method === 'index' ) {
$method = $class;
}
foreach( $controllers as $controller ) :
try {
$routed = $this->container->get( $controller );
if( $routed->exists( $method ) ) :
die( $routed->view( $method ) );
endif;
} catch( \Orno\Di\Exception\ReflectionException $e ) {}
/home/tbec71889672/public_html/src/PMCOM/Core/Router.php
public static function __callStatic( $method, $parameters )
{
if( is_null( static::$instance ) )
{
static::$instance = new Router();
}
return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
}
/home/tbec71889672/public_html/index.php
|---------------------------------------------------------------
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
PMCOM\Core\Router::get_route( $container );
/home/tbec71889672/public_html/index.php
|---------------------------------------------------------------
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
PMCOM\Core\Router::get_route( $container );