Jump to content

Recommended Posts

Hii All,

I am working on Drupal right now, well, the problem I am facing is that I am not being able to track the flow bcoz I am not familiar with the urls,

 

 

for. e.g

in the <form> tag the action attribute says "action=user/manage/books/add"

 

What does this mean? On which page does the flow go on pressing submit?

I just want to know on which .php page does the flow goes on pressing submit...

 

 

ThanX

Link to comment
https://forums.phpfreaks.com/topic/129522-help-me-with-the-drupal-urls/
Share on other sites

Drupal clean URLs don't actually exist. They are just stored in the database. When a URL is entered, the system looks in the database for that URL (or the closest URL it can find if it doesn't exist), and executes the function that is linked to that URL.

 

On top of this, pages also only exist in the database. Drupal only ever actually calls one page - index.php. But because of URL re-writing, you don't see that this page is being called. index.php gets all the necessary inforamation out of the database, and outputs it to the browser.

 

It's not set up the same way web pages traditionally have been set up.

Can I manually add a row to the database?

 

I am integrating a project in drupal.

By performing an "Add" operation I know which tables are being updated in the database.

But I am confused about the nid(node id I guess) and the vid(I dont know whats this), I dont know from where these 2 things are inserted in the table.

 

And I dont think its the right way to insert data in the database tables this way...

Or is it?

 

 

It's not. You want to write a module, and include a hook_menu() function into the module. But this is fairly advanced (even though I am saying it so easily here). You would be best off spending a little time learning how to do module development before trying this.

 

And I really wouldn't recommend adding stuff directly into the database.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.