Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 5:06 am (All times are UTC )

 




Post new topic Reply to topic  [ 2 posts ] 
Author Message
Posted: Sat Aug 23, 2008 2:37 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 27, 2008 1:14 pm
Posts: 12
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


Top
  E-mail  
 
Posted: Sat Aug 23, 2008 5:03 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 27, 2008 1:14 pm
Posts: 12
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.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group