Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing up the categories and code format
- Loading branch information
1 parent
cf458e6
commit 4627d38
Showing
4 changed files
with
74 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php | ||
class CategoriesAppController extends AppController { | ||
|
||
var $helpers = array( | ||
'Categories.Categories' | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Comment Template. | ||
* | ||
* @todo -c Implement .this needs to be sorted out. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://infinitas-cms.org | ||
* @package sort | ||
* @subpackage sort.comments | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since 0.5a | ||
*/ | ||
|
||
echo $this->Form->create('Category', array('action' => 'edit')); | ||
echo $this->Infinitas->adminEditHead($this); | ||
echo $this->Design->niceBox(); | ||
?> | ||
<div class="data"> | ||
<?php | ||
echo $this->Form->input('id'); | ||
echo $this->Form->input('title', array('class' => 'title')); | ||
echo $this->Categories->wysiwyg('Category.description'); | ||
?> | ||
</div> | ||
<div class="config"> | ||
<?php | ||
echo $this->Design->niceBox(); | ||
echo $this->Form->input('parent_id'); | ||
echo $this->Form->input('group_id', array('label' => __('Min Group', true), 'empty' => __('Public', true))); | ||
echo $this->Form->input('active'); | ||
echo $this->Design->niceBoxEnd(); | ||
?> | ||
</div> | ||
<?php | ||
echo $this->Design->niceBoxEnd(); | ||
echo $this->Form->end(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
class CategoriesHelper extends AppHelper{ | ||
|
||
} |