summaryrefslogtreecommitdiff
path: root/core/controllers
AgeCommit message (Collapse)Author
2008-11-12Code cleanup, add test for time formatting function.Jozef Selesi
2008-11-12Throw an exception when we can't upload a file. This is not the best ↵Bharat Mediratta
solution, but it works for now.
2008-11-12aliasing owner to userFelix Rabinovich
2008-11-12Create a simple benchmark that loads 500 localized messages and performsBharat Mediratta
500 localizations on them.
2008-11-11Change the PUT/DELETE tunneling param from __action to _methodBharat Mediratta
to be like Rails.
2008-11-11Move scaffolding code out of the comments controller to welcome.php.Jozef Selesi
2008-11-11Change Album and Photo controllers to set the user object as a global ↵Tim Almdal
variable; change the header so it links to the user controllers; and add the user controllers which don't do anything.
2008-11-11Change REST API to use non-routable functions: _get(), _post(),Bharat Mediratta
_put(), _delete(). This should make it more obvious that these are not your typical routes, simplifies overall routing by removing a rule and removes the possibility of accidentally leaking information if we route to one of them by accident.
2008-11-11Add phpdocs to explain how to use REST_ControllerBharat Mediratta
2008-11-11Create REST_Controller abstract base class for all REST based resourceBharat Mediratta
controllers. Any controller that wants to act RESTful can extend this class and implement get/post/put/delete. Tweak default routes to disallow direct access to the REST controller and direct access to any REST methods.
2008-11-10Manually delete the auth table and module entry to ease transitions for devs.Bharat Mediratta
2008-11-10Reset the links in the header and update the readmeTim Almdal
2008-11-10Add support for multi-file-upload using jquery.MultiFile and modifyBharat Mediratta
Item_Controller to accept it.
2008-11-10The start of the login functionality. It shows the login popup but doesn't ↵Tim Almdal
do anything else. Just got tire of my changes being clobbered :-)
2008-11-10Add the ability to create albums to the scaffoldingBharat Mediratta
Revert $_POST back to $this->input->post() because that supports default values.
2008-11-10Convert quote stylesBharat Mediratta
Convert $this->input->post to $_POST
2008-11-09Implement Item_Controller::put() and delete()Bharat Mediratta
Adjust/simplify photo::create Add image uploading to the scaffolding
2008-11-09Make Gallery3 more RESTful.Bharat Mediratta
Create Item_Controller as a common superclass for Album_Controller and Photo_Controller. Change routes to route requests to Item_Controller for dispatching, which in turn will generate get/post/put/delete requests to the controlller so that each controller has a RESTful surface. Change in_place editing to take advantage of this.
2008-11-08Add support for in-place editing of data fields.Bharat Mediratta
2008-11-08Simplify the way that we find the user id (just look it up, and if there's a ↵Bharat Mediratta
database exception use the null value)
2008-11-08Adding user (owner) to items; info moduleFelix Rabinovich
2008-11-07Change add() to add photos:albums at a ratio of 10:1Bharat Mediratta
2008-11-07Add automatic pagination. All you have to do is add <?= $theme->pagerBharat Mediratta
?> to your theme file and you get a well formed pager. Themes can customize this any way they want. A version that matches the mockup is provided in the default theme.
2008-11-07Use jquery.cookie to keep the same tab open when you refreshBharat Mediratta
Add a switch to turn profiling on/off
2008-11-06Oops, these files got left out of r18525.Bharat Mediratta
2008-11-06album::set_thumbnail is now part of Item_Model so it can go.Bharat Mediratta
Fix a bug in the scaffolding where we weren't saving the album after adding its thumbnail (so its dimensions weren't getting set).
2008-11-06Add quick-link to the deepest photo to test hierarchical navigationBharat Mediratta
2008-11-06spruce up the display of commandsChad Kieffer
2008-11-06When uninstalling the core, uninstall all the other modules first.Bharat Mediratta
Otherwise, when you reinstall the other module's tables are still hanging around and interfere with their install.
2008-11-06Fix a typo.Bharat Mediratta
2008-11-05Guard the module loading code against database errors (in case the database ↵Bharat Mediratta
isn't configured yet)
2008-11-05remove tabsBharat Mediratta
2008-11-05Add info section with MPTT graphsBharat Mediratta
2008-11-05* Add thumbnail and resize dimensions to the item table and use themBharat Mediratta
properly in the theme. * Move thumbnail and resize generation down into the model for consistency. * Add a sample thumbnail for albums * Fix a bug in the ORM to clear the cache when we reload an object. * Add Kohana docs to the scaffold.
2008-11-05Add the photo controller, and tie it to the photo page in our theme.Bharat Mediratta
Implement a real breadcrumb.
2008-11-05Report the number of photos/albumsBharat Mediratta
2008-11-05The carousel block is now off into its own module. TheBharat Mediratta
sidebar.html.php file loops over $theme->blocks() which in turn calls carousel::block() which uses the Block object to create a standard block UI. Hooray!
2008-11-05Don't overwrite the version number of installed modules when searching for ↵Tim Almdal
uninstalled modules.
2008-11-05Updated for new MPTT APIBharat Mediratta
2008-11-05Further simplify the code.Bharat Mediratta
2008-11-05_readModules -> _readModulesBharat Mediratta
Simplify the installer-detection code.
2008-11-05Clean up camel humped names and move private function to bottom of fileTim Almdal
2008-11-04Have the scaffolding code see what what modules are available and list ↵Tim Almdal
whether they need to be installed or uninstalled.
2008-11-04Lots of new stuff!Bharat Mediratta
Replace theme HTML with *almost* the latest stuff from the mockups. (it doesn't include r18467 yet). Our theme format is now modelled after WordPress / Habari's style where you have one entry point per type (eg: album.php) which can load up whatever parts it needs (eg: $theme->display("header")) Created album and photo helpers which have create() functions that form the base of our new API, along with tests for them. Created our own version of the ORM_MPTT since the existing versions were too buggy and unsupported to depend upon. Only has a minimal implementation so far, and the tests are not yet committed. Added path(), thumbnail_path() and resize_path() to Item_Model Extended the scaffolding to allow you to add lots of photos/albums into your hierarchy. Deleted modules/mptt -- we're not going to use this anymore.
2008-11-04Add a test to detect tabs in our code, and convert all tabs to spacesBharat Mediratta
so that the test passes.
2008-11-04Restructure the theme code to be more like WordPress / Habari. Now,Bharat Mediratta
the controller initiates a request to a top level page (eg: album.html.php) which is then free to include whatever other page chunks it wants with calls like <?= $theme->display('header.html') ?> Variables like $item and $children are in the global space for all views. theme.php helper is now Theme.php library which lets us store the name of the theme inside the variable itself. This means that the theme does not have to know its own name because you can use $theme->url() for all urls to stuff inside the theme itself, which makes it possible to cline a theme without changing a single line. Still using the mock album UI.
2008-11-03Create an initial attempt at the album controller, set it up with a default ↵Bharat Mediratta
route and add a link to it from the welcome page.
2008-11-03Put info about installed modules directly into the scaffolding page,Bharat Mediratta
and create methods to install/uninstall modules.
2008-11-02Create some basic infrastructure:Bharat Mediratta
* item model (contains basic item info, similar to the gx version) * module model (has info about each module and which version of it is installed) * added a very basic unit test to verify that we can create an instance of item * Updated our test controller to require a unit_test db config and call core::install if it hasn't been done already. New pattern: * core/helpers/core_installer.php creates core_installer helper. When we install a new module you call xxx_installer::install(), and when you want it to go away, you do xxx_installer::uninstall() Create
2008-11-02Change this to be inline instead of an iframe, and fix it up so thatBharat Mediratta
it walks you through creating the database also.