if you use guids:
url: /rootpage/pok324pkowdsssss�ok3 <- guid
$object = mgd_get_object_by_guid($argv[0])
if (gettype($object) == MidgardArticle )
switch (gettype($object)) {
case MidgardArticle
case MidgardTopic
etc
}
Tarjei
pp wrote:
>>>how to count them if I do not know how many of them will be in url.
>>>
>>doesnt matter... get argc and then use switch($argc) if you want to
>>distiguish behavior on numer of arguments
>>
>
>I really do not want to use them I just wanted to create midgard based site
>and thoght that I may use for example topic tree in url , but article id could be
>that way
>1 or 2 or 5 or 15
>And argv[9] could be a string or integer.
>How You see switch for that?
>I gave up cause I thought that writing switch and cpntrol structures for that
>will take me too much time as for my php knowledge :)
>
>
>
>>>aaaaaaah!..... do not tell no more!
>>>I am angry cause if I do not read I have to wait TWO years!
>>>
>>1. Emile: try lookin for JRR - he who wrote 3 volumes :-). Besides,
>>other way u'd have to spend some 9 hours in the theatre :-)
>>2. Piotras: I belive - it;s not so easy to make a 3-hour movie,
>>especially 3 of them one after other ;-)
>>
>
>yeah! I think I will be very impressed when I see them all after
>years :))
>
>Piotras
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]