Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2013
    Posts
    104
    Plugin Contributions
    0

    Default questions about firebug and PHP file.

    I have some questions about firebug. What's the relationshop between the PHP text and the HTML text which is showed by firebug? Are they same? And how can I know which PHP file or CSS file the web element belong to through firebug?

    When I use firebug to change the elementary on the web and I can see the prompt effect, but I also don't know how to realize it through PHP or CSS. Somebody helps please

  2. #2
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: questions about firebug and PHP file.

    when you click on the element in left/main window have a look in the right pane, it'll tell you the css line and file.

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: questions about firebug and PHP file.

    And how can I know which PHP file or CSS file the web element belong to through firebug?
    CSS: the right hand Firebug pane will show you the location of the css declaration(s) that are being applied to the selected element.

    PHP: no so direct. The php files "build" the html files so a single html page may be made from many chunks of php.
    This gets easier with experience but one way is to use the id of the element you are interested in, or one nearby, or a comment in the code, and search for that in the includes/files...

    Or use the text in the page as a search term: find the constant in the language files where it is defined, then find the file where the constant is used.

    This is much easier when you work on a local pc-based copy of your shop.

    If you find multiple places/files where the search term is used, put a comment in the file and see if it appears in the html page.

    There's lots of trial and error until you get some intuition about how things work.

    But of course this all something to do later..after you have completed the urgent upgrade away from the unsecure 1.38 which of course you are busy with at the moment....
    Last edited by torvista; 22 Mar 2013 at 10:44 AM.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: questions about firebug and PHP file.

    You will not see any "php" once the page has been assembled. php is the code system used to build the html, which is then delivered to the browser. The php remains in the background and is not rendered at the browser.
    19 years a Zencart User

 

 

Similar Threads

  1. v151 questions about Template Modification File Structure
    By Peter_AimImports in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 15 Nov 2012, 06:41 PM
  2. v150 questions about code - header_php.php & main_template_vars.php
    By barricades in forum General Questions
    Replies: 3
    Last Post: 8 May 2012, 06:44 AM
  3. Warning about nonexistent configure.php file
    By carystevens in forum Installing on a Windows Server
    Replies: 2
    Last Post: 14 Jun 2009, 03:49 PM
  4. Hello,have any one let me know where is the shop news file and about us file
    By gueston in forum Customization from the Admin
    Replies: 2
    Last Post: 30 May 2009, 07:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR