Skip to content

Commit

Permalink
Fixed some installation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-d committed Aug 12, 2016
1 parent 26bfcd4 commit 63fc3f9
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 3 deletions.
31 changes: 31 additions & 0 deletions component/administrator/components/com_foo/tables/foo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* @package [PACKAGE_NAME]
*
* @author [AUTHOR] <[AUTHOR_EMAIL]>
* @copyright [COPYRIGHT]
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @link [AUTHOR_URL]
*/

defined('_JEXEC') or die;

/**
* Agent table.
*
* @since 1.0
*/
class TableAgent extends JTable
{
/**
* Constructor
*
* @param JDatabaseDriver $db Database driver object.
*
* @since 1.0
*/
public function __construct(JDatabaseDriver $db)
{
parent::__construct('#__foo_items', 'item_id', $db);
}
}
15 changes: 15 additions & 0 deletions component/components/com_foo/layouts/foo/page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* @package [PACKAGE_NAME]
*
* @author [AUTHOR] <[AUTHOR_EMAIL]>
* @copyright [COPYRIGHT]
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @link [AUTHOR_URL]
*/

defined('_JEXEC') or die;

extract($displayData);

echo $text;
6 changes: 4 additions & 2 deletions component/components/com_foo/views/foo/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

JHtml::_('script', 'com_foo/script.js', false, true);
JHtml::_('stylesheet', 'com_foo/style.css', array(), true);
?>

Hello Joomla!
$layout = new JLayoutFile('foo.page');
$data = new stdClass;
$data->text = 'Hello Joomla!';
echo $layout->render($data);
1 change: 0 additions & 1 deletion component/foo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<folder>controllers</folder>
<folder>helpers</folder>
<folder>language</folder>
<folder>layouts</folder>
<folder>models</folder>
<folder>sql</folder>
<folder>tables</folder>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 63fc3f9

Please sign in to comment.