PHP Classes

Question to the author

Recommend this page to a friend!

      Relink  >  All threads  >  Question to the author  >  (Un) Subscribe thread alerts  
Subject:Question to the author
Summary:How I can make the such?
Messages:7
Author:gidro
Date:2008-10-02 14:49:43
Update:2008-10-04 13:11:42
 

  1. Question to the author   Reply   Report abuse  
Picture of gidro gidro - 2008-10-02 14:49:43
Hi, Benjamin Falk!

How I can make the such?

echo '<a href="'.$c_relink->replaceLink('?news&showall').'">All News</a>';

RewriteRule news/showall.html ?news&showall

My example does not work.

  2. Re: Question to the author   Reply   Report abuse  
Picture of Benjamin Falk Benjamin Falk - 2008-10-02 18:54:23 - In reply to message 1 from gidro
Hello,
as I already wrote you in the mail, it is generally not working.
The idea was to convert links like ?var1=val2&var2=var2
But I will work on that.

  3. Re: Question to the author   Reply   Report abuse  
Picture of gidro gidro - 2008-10-02 18:57:37 - In reply to message 2 from Benjamin Falk
Yes, many thanks for the answer!

I will wait for updating.

  4. Re: Question to the author   Reply   Report abuse  
Picture of Benjamin Falk Benjamin Falk - 2008-10-03 18:42:38 - In reply to message 3 from gidro
Hello gidro! I just updated the class, and your problem should be solved by now :)

greetings

  5. Re: Question to the author   Reply   Report abuse  
Picture of gidro gidro - 2008-10-03 19:53:54 - In reply to message 4 from Benjamin Falk
Thanks!

How to make here it: ?news&id=2

And as other variants.

  6. Re: Question to the author   Reply   Report abuse  
Picture of Benjamin Falk Benjamin Falk - 2008-10-04 11:39:42 - In reply to message 5 from gidro
Hi :)
Sorry, I fixed that. In the new version 0.2.1 it should work.

  7. Re: Question to the author   Reply   Report abuse  
Picture of gidro gidro - 2008-10-04 13:11:42 - In reply to message 6 from Benjamin Falk
Big thanks!! Good work!

RewriteRule (.+?)/(.+?).html ?$1&id=$2
echo '<a href="'.$c_relink->replaceLink('?news&id=5').'">New 5</a>';

It's work, but

RewriteRule news/(.+?).html ?news&id=$1
echo '<a href="'.$c_relink->replaceLink('?news&id=5').'">New 5</a>';

not work.