Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,872
    Plugin Contributions
    96

    Default Developers' Tool Kit: Why does it limit root-directory files?

    After spending about an hour yesterday trying to find the .php module that included a particular text string using the Developers' Tool Kit, I finally located that file going through the store's file-system by hand.

    The file was part of an update I'd provided to the store, present in the store's root directory. Looking through the DTK code, the only .php files that are included in an "all-file" search in the root directory are those provided by the Zen Cart distribution itself.

    Is there a reason for this? It seems like limiting that search somewhat cripples the DTK.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Developers' Tool Kit: Why does it limit root-directory files?

    Quote Originally Posted by lat9 View Post
    Is there a reason for this? It seems like limiting that search somewhat cripples the DTK.
    Good question, but this limiting isn't one that really bothers *me* much. Although I do use the DTK at times I find it rather impractical for the reasons I use it. I tend to use the search functions in my IDE far more than the DTK 'cos when it finds what I'm looking for the file(s) are ready for any edits.

    Until now I wasn't even aware this limitation existed, which probably goes some way to explaining why I don't use it much. :)

    Cheers
    RodG

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Developers' Tool Kit: Why does it limit root-directory files?

    I believe the limitation was in order to prevent endless (or out-of-control due to massive size) loops through files that could be completely unpredictable. And ostensibly therefore also protect from a security perspective.

    I can see the value of using a server-side tool like DTK instead of an IDE ... such as when working on a client site, especially before a copy of their filesystem is made (or is even deemed necessary).
    I suppose another enhancement could be yet-another-switch to allow for out-of-control-boundless search on everything under the sun, use-at-own-risk mode. Not real fond of putting that kind of control in a novice storeowners' hands though.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Developers' Tool Kit: Why does it limit root-directory files?

    Quote Originally Posted by DrByte View Post
    I can see the value of using a server-side tool like DTK instead of an IDE ... such as when working on a client site,
    Aye. And this is where I tend to use it most.

    Quote Originally Posted by DrByte View Post
    especially before a copy of their filesystem is made (or is even deemed necessary).
    As for deeming it necessary, when possible I always make a full backup of any site before working on it, even if what I need to do is quite minor. (OK, sometimes I'll only backup only the folders I know I'll be working on), but I never ever leave myself in a position where I can't restore things to the state they were before starting on it.

    Quote Originally Posted by DrByte View Post
    I suppose another enhancement could be yet-another-switch to allow for out-of-control-boundless search on everything under the sun, use-at-own-risk mode. Not real fond of putting that kind of control in a novice storeowners' hands though.
    I can relate to that :)

    Cheers
    RodG
    PS. Thanks for the reasoning behind this limitation, even though I wasn't actually aware of it, it does explain why sometimes it didn't find the things I was searching for.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 1 Aug 2016, 04:31 PM
  2. On one site, Developers Tool Kit failing to Look-up key or name in admin files
    By frank18 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 18
    Last Post: 30 Sep 2010, 07:11 PM
  3. Developers Tool Kit search does not work..
    By yuppicide in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Mar 2010, 11:23 PM
  4. Admin Developers Tool Kit not searching my Admin files
    By ronlee67 in forum General Questions
    Replies: 5
    Last Post: 2 Jan 2008, 05:43 AM

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