Front-end Joomla component development

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.
Locked
vandana
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Fri Jun 27, 2008 1:14 pm

Front-end Joomla component development

Post by vandana » Sat Aug 23, 2008 2:37 pm

Hi,

I want to make a front-end joomla component.
I made a model, a view, a controller enz. and placed all the file in the right directories.

But when I want to see my view, nothing is displayed in my view....not even when I type some text. I do'nt; see any error that my view is not find.

What can be wrong? I hope someone can help me..

Regards,
Vandana

vandana
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Fri Jun 27, 2008 1:14 pm

Re: Front-end Joomla component development

Post by vandana » Sat Aug 23, 2008 5:03 pm

I have the following code in my controller

echo '<div class="componentheading"> Time</div>';
$controller = new TimeController();
$controller->registerTask( 'new' , 'edit' );
$controller->registerTask( 'apply' , 'save' );

$controller->execute(JRequest::getVar('task', null, 'default', 'cmd'));
$controller->redirect();

When i comment the line $controller->execute(JRequest::getVar('task', null, 'default', 'cmd')); . But when I apply the line I het the following error:

Fatal error: Call to a member function getName() on a non-object in C:\Program Files\xampp\xampplite\htdocs\joomla_new\libraries\joomla\application\component\view.php on line 449

I am developing accoring to joomla 1.5 MVC.


Locked

Return to “Joomla! Coding 101”