Using friendly URL

Using friendly URL

The friendly URL was included from Scriptcase 7, in order to make the URL, of the applications generated by Scriptcase, cleaner and easier to associate them with applications.

For example, using friendly URLs the link to a Scriptcase application would end like this: ../app/test/client

If we were not using this resource, the URL of this application would end like this: ../app/test/form_client_1/form_client_1.php

Displaying unnecessary information for the user.

 

To create a friendly URL it is interesting:

- Do not use accents, symbols and special characters like รง;

- Use hyphen (-) to separate words;

- Use lowercase letters;

- Use keywords in the URL;

- Use short URL's, as short as possible.


We will now see how to configure the friendly URL in Scriptcase.


1. After entering the project, go to Project > Properties.



 

2. Then we will be redirected to the project settings screen, check yes in the option to use index page.

     Note: When creating a project, this option is enabled by default.

 


 

3. Then, we must access each application and inform which URL will be used in the Friendly URL field.



 

4. It is possible to view the applications that contain friendly URL's on your project's home screen.


    • Related Articles

    • Using ajax: onChange events

      In this article we will see how the onChange event works, available in Scriptcase. It is triggered when the object, which makes use of it, has its value changed. Down below is an example of using this event. We will use an order items form, we will ...
    • Using Languages in Scriptcase

      In Scriptcase you have the option to standardize the language information quickly and uncomplicated. Using the feature you can change LANGUAGES entire textual structure of the project, since this native messages Scriptcase own name to fields and ...
    • Using the Database Builder

      The DataBase Builder is a Scriptcase 'DBMS' (Database Manager System), this tool allows you to create tables, modify the structure of your tables, generate ER diagrams (Entity x Relationships), perform the export of the tables among other things. ...
    • Using the sc_confirm macro

      In this article, see a practical example of using the sc_confirm macro. This macro can only be used on PHP buttons created in the toolbar of form and control applications, with the aim of confirming the action's excursion. See how to create a PHP ...
    • Using tags in the Chart search

      When we are using the search in the Chart applications, we can enable the display of the tags for the searched values. This option can be adjusted in the Advanced Search settings. Enable the option Display tags. Next, run the application and access ...