Announcement

Collapse
No announcement yet.

Is there a way to change the app name dynamically?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to change the app name dynamically?

    I have a blank app working ok, the current name is "product" but, i would like to change the app name dynamically with the name of the product loaded.
    I mean, if the current product name is "iphonex" I like the app name change to "product-iphonex" instead of "product?id=1"

    Is there a way to change this? somebody can give me a clue?

    Thanks a lot.


  • #2
    Hi Hikiboy,
    Yes. But is not a ScriptCase thing you only need to change the .htaccess file (linux servers),

    EXAMPLE

    Code:
    RewriteEngine on
    RewriteRule ^/products/(.*)$ product.php?name=$1 [L]

    And your product.php


    PHP Code:
    $name=$_GET["name"];
    //now search that name in your database to get the ID 



    Best Regards
    Hiram BQ

    Comment

    Working...
    X