Hi guys,

I am busy with my nodes controller... I forwarded each routing to
nodes_controller -> show.
Now I have my nodes table structure with a id, name, parent_id and
url. The url is just the name which it should be accessible in the
browser. Like about_us.

Now you can see the parent_id is for the three effect which can go on
eternaly. If want to add a subnode to about_us with the url name
'contactinfo'. I don't want to put about_us/contactinfo in the
database because i have an tree script which haves a drag and drop
function. And thats based on the parent_id.

So I am looking for an FOR loop which cuts the requested url into
parts like this:
$mylink=$sanit->sql(substr($_SERVER['QUERY_STRING'], 4));
$parts = explode('/', $mylink);

Now i would like to do the for loop which looks into the database if
it can find the requested parts in the RIGHT follow ups. Has somebody
an Idea how I should do that?

Greetz,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to