summaryrefslogtreecommitdiff
path: root/core/helpers/MY_url.php
AgeCommit message (Collapse)Author
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.
2009-05-14Use model_cache() instead of ORM::factory()Bharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-03-16Don't count on the uri having 3 components; that breaks on newer versions of ↵Bharat Mediratta
PHP.
2009-03-14style fixesBharat Mediratta
2009-03-14Invert the check for https vs http.Tim Almdal
2009-03-09Tweak abs_file() and abs_site() to generate https urls as appropriate.Bharat Mediratta
Fixes ticket #125
2009-02-14Fix rewritten urls to handle query params properly. This was breakingBharat Mediratta
code like: url::site("albums/3?page=2")
2009-02-08A better fix for the problem with special characters (this simple 2Tim Almdal
line change replaces r19995, r19998-r20001 (thanks Bharat)
2009-02-08rollback r20001-r19998, r19995. This may require a reinstallTim Almdal
2009-02-06Implement fix for ticket #35. *** Requires reinstall of core ***Tim Almdal
* Added new field in items table (path) which is sanitized version of name. * Added __set method on Items_module to set the path field whenever the name field is changed. * Made some changes to the scaffolding so missing the path column would not kill the scaffolding. * Changed MY_url::site so not having a 3rd parameter won't throw an error.
2009-01-29Add support for pretty urls. So now instead of urls like:Bharat Mediratta
http://example.com/gallery3/index.php/albums/2 http://example.com/gallery3/index.php/photos/9 You'll see urls like: http://example.com/gallery3/index.php/Family/Weddings http://example.com/gallery3/index.php/Family/Weddings/Bob.jpg
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
2008-12-21Add a logging facility, and instrument login/logout to use it.Bharat Mediratta
2008-11-25Rename get_absolute_url to abs_currentTim Almdal
2008-11-25Normalize atom url generationTim Almdal
2008-11-20* Added HTTP status constants and helper functions to REST helper.Jozef Selesi
* HTTP header setting in comment module now going through REST helper API. * Fixed items controller test. * Fixed user installer test. * Fixed _create() handling in the REST controller. * Fixed routing for edit and add forms. * Added some tests for the REST controller. * Set svn:eol-style to LF on a bunch of files. * Added preamble to MY_Forge.php.
2008-11-19Fix typo.Bharat Mediratta
2008-11-19Create url::abs_site() and url::abs_file() to allow us to generateBharat Mediratta
full URLs with a clean API, and isolate the cruddy party where we have to hardcode the server protocol into a single file.