Welcome Guest, Not a member yet? Register   Sign In
Problem with uri
#1

[eluser]7amza[/eluser]
Hey
i have a problem using this uri :
site.com/page/{#####}
while {####} is a non ASCII Page Slug, so when i try to get the page from the databse i get en empty result (FALSE)!!
this is the query(using ORM DM):
Code:
$slug = $this->uri->segment(2);
$page = new page();
$page->where('slug',$page)->get();
if($page->exists() == FALSE){
echo "Empty";
}else{
..
}
in the database all is right the slug exists , and if i use an ASCII Page slug it works good !
any help guys?
// sorry for my poor english


Messages In This Thread
Problem with uri - by El Forum - 02-26-2011, 02:54 AM
Problem with uri - by El Forum - 02-27-2011, 12:14 AM
Problem with uri - by El Forum - 02-27-2011, 02:00 AM
Problem with uri - by El Forum - 02-27-2011, 04:50 AM
Problem with uri - by El Forum - 02-27-2011, 07:46 AM
Problem with uri - by El Forum - 02-27-2011, 12:08 PM
Problem with uri - by El Forum - 02-28-2011, 11:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB