Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Creating a new task 05 Dec 2013 03:02 #11742

I can't seem to create new tasks for my controllers. I just end up at a blank page.

I want to add the task
upload
to a controller class which will handle ajax uploading of images. I created a stub to test:
public function upload() {
		
		echo "Hello world!";
		exit;
		
	}

When I navigate to: index.php?option=com_mycomponent&task=mycontroller.upload - I get a blank page. Actually I can't get anywhere using task in the url. mycontroller.add, mycontroller.edit, etc - all land at a page with no data. (Completely empty, there is no text or html at all).

I am testing on Joomla 2.5 and Joomla 3.0.

I was able to do this in past versions of cook.

Please help me fix this! Thank you.

Please Log in or Create an account to join the conversation.

Last edit: by jhallock.

Creating a new task 06 Dec 2013 12:24 #11751

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 132
  • Thank you received: 19
Hi,
I got working something similar. The "upload" function I placed in controller (the controller placed in root of your component, not in controllers folder)

Please Log in or Create an account to join the conversation.

Creating a new task 17 May 2015 10:08 #13012

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Should be fixed now. (2.7)

Note : You must call
controller.task
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.079 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started