Agile Toolkit news

library updates, tips, information and more

New class: PathFinder

Several of current components are relying on their own implementation for file searching:

  • SMLite – template inclusion
  • class auto-load
  • javascript inclusion
  • page search

PathFinder is designed to be a system-wide controller which will take all those searches under control. It introduces concepts of Locations and resource types (such as ‘js’, ‘html’ for templates, ‘php’ etc)

Structured APIs will automatically include PathFinder and will supply $api->locate($type,$filename) and $api->addLocation($location,$contents) function.

$contents is passed as array of $type=>’subdirectory’.


April 17, 2010 - Posted by | Core changes, Version 3

1 Comment »

  1. […] largest change is introduction of PathFinder. I have already mentioned it. The purpose of the class is to unify not only loading of different things, but it links […]

    Pingback by Agile Toolkit branched for refactoring | Agile Toolkit news | March 19, 2011 | Reply

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s