[TYPO3-ect] Annotation AW: Unsolvable problems with lib
Sebastian Fischer
s.fischer at b-und-h.de
Thu Dec 20 14:10:28 CET 2007
Hi everyone,
I discovered something more surprising. In lib_controller->_buildController
the $controller doesn't gets build correctly. Even though a debug shows me
that $this->controllerClassName realy contains tx_sfdownloads_controller as
classname, the tx_div::makeInstance results in an empty output of the debug
of $contoller.
So without a valid $contollers its naturally not possible to get a result
rendered.
Greetings
Sebastian
-----Ursprüngliche Nachricht-----
Von: typo3-team-extension-coordination-bounces at lists.netfielders.de
[mailto:typo3-team-extension-coordination-bounces at lists.netfielders.de] Im
Auftrag von Sebastian Fischer
Gesendet: Donnerstag, 20. Dezember 2007 13:50
An: TYPO3-team-extension-coordination at lists.netfielders.de
Betreff: [TYPO3-ect] Unsolvable problems with lib
Hi everyone.
Currently Im working on my second extension based on div/lib. This time I
want to use the latest nightly build so have the most function ready for the
release versions of div/lib. But I cant get any output of my actions. So I
tried to get into the lib_controller stuff to understand if I did something
wrong or not.
To break everything down, I tried to have a empty class so the defaultAction
is used. But I dont even get the Prototype content as result. After some
research if got to the point that something in _runAction isnt working for
me. So even though I didnt changed any default values the
if(method_exists($controller, $controller->action)) { section doesnt find
any executable action, not even the defaultAction.
Second problem I have is related to bananas. I tried to keep my setup.txt as
near as possible parallel to the setup.txt of bananas. But when I use the
following code I can't overwrite the $defaultAction
plugin.tx_sfdownloads_mvc1.setup {
languageFile = EXT:sf_downloads/configurations/locallang.xml
templateDirectory = EXT:sf_downloads/templates/
fileListTemplate = fileList.html
categoryListTemplate = categoryList.html
# either renderFileListAction or renderCategoryListAction are
possible
defaultAction = renderFileList
listLimit = 6
dateFormat = %d.%m.%y
fields {
title.crop = 3 | |
title.case = lower
}
}
plugin.tx_sfdownloads_mvc1 = USER_INT
plugin.tx_sfdownloads_mvc1.userFunc = tx_sfdownloads_controller->main
plugin.tx_sfdownloads_mvc1.mesh {
setupPath = plugin.tx_sfdownloads_mvc1.setup.
}
If put the defaultAction line directly inside mesh it does what it should
do. So what is the correct way to do, because looking into
lib_controller->_resolveMeshSetup shows me that $mesh['defaultAction'] never
will read inside the setupPath.
Confused and curious greetings
Sebastian
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: 19.12.2007
19:37
_______________________________________________
TYPO3-team-extension-coordination mailing list
TYPO3-team-extension-coordination at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-co
ordination
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: 19.12.2007
19:37
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: 19.12.2007
19:37
More information about the TYPO3-team-extension-coordination
mailing list