Skip to content

Commit

Permalink
updating page titles and adding lithium submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
gwoo committed Oct 15, 2011
1 parent 52ffe33 commit 4e586c4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
.DS_Store
.DS_Store
resources
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "libraries/lithium"]
path = libraries/lithium
url = git://github.com/UnionOfRAD/lithium.git
2 changes: 1 addition & 1 deletion config/bootstrap/libraries.php
Expand Up @@ -59,7 +59,7 @@
* directory as your application. If you use the same libraries in multiple applications, you can
* set this to a shared path on your server.
*/
define('LITHIUM_LIBRARY_PATH', '/htdocs/union-of-rad/projects');
define('LITHIUM_LIBRARY_PATH', LITHIUM_APP_PATH . '/libraries');

/**
* Locate and load Lithium core library files. Throws a fatal error if the core can't be found.
Expand Down
1 change: 1 addition & 0 deletions libraries/lithium
Submodule lithium added at f12057
6 changes: 4 additions & 2 deletions views/inflectorizer/index.html.php
@@ -1,9 +1,11 @@
<?php if (isset($result)):?>
<h2>Result: <?=$result;?></h2>
<h2><?=$this->title("{$method} {$text} => {$result}");?></h2>
<?php endif;?>

<?=$this->form->create(null, array('action' => 'display')); ?>
<?=$this->form->field('method', array('type' => 'select', 'list' => $methods)); ?>
<?=$this->form->field('method', array(
'type' => 'select', 'list' => $methods, 'value' => $method
)); ?>
<?=$this->form->field('text', array('value' => $text)); ?>
<?=$this->form->submit('inflect me baby!'); ?>
<?=$this->form->end(); ?>
1 change: 1 addition & 0 deletions views/inflectorizer/show.html.php
@@ -1,3 +1,4 @@
<?php $this->title($text);?>
<?php if (!empty($results)):?>
<h2>Result:</h2>
<?php foreach($results as $method => $result): ?>
Expand Down

0 comments on commit 4e586c4

Please sign in to comment.