Welcome Guest, Not a member yet? Register   Sign In
Is that possible to generate URL from routing rule?
#1

[eluser]Unknown[/eluser]
Let's assume I have the following rule:
Code:
$route['product/:any'] = "catalog/product_lookup";

And I want to create a link that passes the rule.
Something like this:
Code:
echo generateRoutingURL( 'catalog/product_lookup', array( 'some_product' ) );
// Output: product/some_product

Is it possible in any versions of CI?
#2

[eluser]Cristian Gilè[/eluser]
Code:
echo anchor($this->uri->ruri_string(),'link name');




Theme © iAndrew 2016 - Forum software by © MyBB