New class: PathFinder

Saturday, April 17th, 2010|Core changes, Version 3|by Romans|

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)

Read more

Tags:

New class URL and API::getDestinationURL()

Saturday, April 17th, 2010|Core changes, Version 3|by Romans|3 Comments

For a while now, many parts of library relied on function API::getDestinationURL($page). This function returns the valid URL which will point to specified page. However the implementation of this function was only working for absolute page names, and was built-in into API.

I am adding implementation which relies on a new class called URL. This class instance will be returned by getDestinationURL(). If you happen to pass this object to getDestinationURL again, it will not going to mess up the URL anymore.

Read more

Tags: