• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

TYPO3 open actionlink in same container

I've run into a little Problem with my TYPO3 Extension I created with the Extension Builder. The Extension generates a Calendar and shows a list of upcoming events. Calendar with listed events

code list.html

{event.title} {event.date}
{scriptDates}

the list is created via the standard listAction in the controller and the elements can be clicked to show detailed information about each event.

However, when clicking on a linked Listitem, it reloads the pluginarea with the deatailed information as a new page. I would prefer it if the div.tx_tbpartnereventcal would just change the content of itself to the detailed information.

I have no idea however, how to get that working with ajax in TYPO3 or if there is another way.

Code controller action list and show:

/**  * action list  *  * @return void  */ public function listAction() {     $events = $this->eventsRepository->findAll();     $this->view->assign('events', $events);       /* get all events and turn into json for js calendar */     $allNotes ='';     /** @var Event $event */     foreach ($events as $event) {         $tempArr=array("date"=>$event->getDate()->format("Y-m-d"), "note" =>$event->getTitle(), "description" => $event->getLink(), "optional"=> "stuff");         $allNotes .= json_encode($tempArr).",";     }      /* create script to use data in js in .html */     $script = "          ";      /* send js script to list.html to insert into js calendar */     $this->view->assign('scriptDates', $script); }   /** * action show *  * @param TBPartnerNetTbPartnerTerminkalenderDomainModelEvents $events * @return void */  public function showAction(TBPartnerNetTbPartnerTerminkalenderDomainModelEvents $events) {    $this->view->assign('events', $events); } 

Am thankfull for any help!

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]

I definitely recommend Weka which is an Open Source Data Mining Software written in Java:

Weka is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a dataset or called from your own Java code. Weka contains tools for data pre-processing, classification, regression, clustering, association rules, and visualization. It is also well-suited for developing new machine learning schemes.

As mentioned above, it ships with a bunch of different classifiers like SVM, Winnow, C4.5, Naive Bayes (of course) and many more (see the API doc). Note that a lot of classifiers are known to have much better perfomance than Naive Bayes in the field of spam detection or text classification.

Furthermore Weka brings you a very powerful GUI

see demo
  • 160
Reply Report