Commit Graph
24 Commits
Author SHA1 Message Date
Bharat Mediratta 8a4ab78bfb Oops, injecting the function name caused an extra call in the call
stack.  The test passed, but the actual code failed.  Fixed now.
2008-11-03 06:02:40 +00:00
Bharat Mediratta fa9dda4c01 Create an initial attempt at the album controller, set it up with a default route
and add a link to it from the welcome page.
2008-11-03 05:55:34 +00:00
Bharat Mediratta 6da6b8ed52 Theme helper. Right now it has one api method, theme::url which
returns a url local to the theme that you're in.  For example, if
you're in themes/foo/views/page_header.html.php and you call
theme::url("images/foo.png") then it'll create a url to:
themes/foo/images/foo.png
2008-11-03 05:52:13 +00:00
Bharat Mediratta 6c35abd30a whitespace fix 2008-11-03 05:36:44 +00:00
Bharat Mediratta 8831e89f40 More bootstrap code.
* core_installer::install now creates the root album and the albums/thumbnails
  directories under VARPATH.
* Add a test for core_installer
2008-11-03 02:08:07 +00:00
Bharat Mediratta 019ea9cd35 Rename columns lft/rgt to left/right. 2008-11-03 02:05:11 +00:00
Bharat Mediratta 8183289bb1 Add some padding between paragraphs. 2008-11-03 01:20:45 +00:00
Bharat Mediratta 2578b598dd Change styles a bit to make it a little more consistent. 2008-11-03 01:13:51 +00:00
Bharat Mediratta 7d2c828a4c Put info about installed modules directly into the scaffolding page,
and create methods to install/uninstall modules.
2008-11-03 00:27:35 +00:00
Bharat Mediratta 7ae73fcd65 Change structure of item table to match MPTT class (which is a little different from ORM_MPTT which we used in gx 2008-11-03 00:26:55 +00:00
Bharat Mediratta e173f36bcb Create some basic infrastructure:
* 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-02 23:55:09 +00:00
Bharat Mediratta 2f151cf39f Ignore view files in no_trailing_closing_php_tag_test since they will occasionally
end in tags like <?= this ?>
2008-11-02 21:56:14 +00:00
Bharat Mediratta 231117b4a3 Change this to be inline instead of an iframe, and fix it up so that
it walks you through creating the database also.
2008-11-02 21:12:15 +00:00
Bharat Mediratta 3f21b08e5f Read local database config file 2008-11-02 19:59:09 +00:00
Bharat Mediratta d742de4e11 Improve welcome scaffolding to walk you through getting the var
directory set up correctly and a database config file in place.
2008-11-02 19:56:57 +00:00
Bharat Mediratta 3ec437029b Add mptt and forge modules to the module load list
disable logging if the log dir is not writable.
2008-11-02 18:57:50 +00:00
Bharat Mediratta bd8cd9364c Fix all our preambles to make the preamble test pass. 2008-11-01 22:43:28 +00:00
Bharat Mediratta 06174a4f74 Add a test to verify that we have the right preamble on files. 2008-11-01 22:42:59 +00:00
Bharat Mediratta 6f98bd445a Clean up tests a bit. 2008-11-01 22:05:08 +00:00
Bharat Mediratta a7f22994ed Add a new test to verify that view files end in .html.php 2008-11-01 18:45:25 +00:00
Bharat Mediratta 60fbea6fd0 Add first test; this verifies that we leave the ?> off at the end of PHP files. 2008-11-01 10:47:00 +00:00
Bharat Mediratta f8b4c66906 Set up unit test framework. Tweak configuration so that it only runs in
command line mode, and expects to put data into test/var.  Create a module
to wrap it that generates a nice text-only view of the output.
2008-11-01 07:55:48 +00:00
Bharat Mediratta 146f34dc07 Improve the welcome page to be a bit more explanatory about the product. 2008-11-01 03:58:08 +00:00
Bharat Mediratta a69515ecb3 Placeholder app for Gallery3, along with a customized index.php and a README
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18409 57fcd75e-5312-0410-8df3-f5eb6fbb1595
2008-10-31 22:38:54 +00:00