Questions tagged [extbase]

Extbase is a TYPO3 CMS extension development framework working closely with TYPO3 Fluid and TYPO3's Extension Builder.

Extbase is a TYPO3 CMS extension development framework written in PHP . Its purpose is to be the foundation of model-view-controller driven extensions. It replaces the older TYPO3 pibase extension development methodology. Extbase works closely with the TYPO3 Fluid templating engine, and with the TYPO3 Extension Builder.

Resources

1425 questions
0
votes
3 answers

conditions in extbase / fluid TYPO3

im trying to check if the given variable is true or not so i can show different links to the user logout
alex
  • 646
  • 9
  • 19
0
votes
1 answer

how to: findByProperty on two fields in typo3 v4.5.30?

I want to search for records which match on two fields with two supplied objects, for example $cnt = $this->usedCouponRepository->findByUser($validvip)->toArray() ; $cnt2 = $this->usedCouponRepository->findByCoupon($validcoupon)->toArray() ; get…
The Newbie Qs
  • 483
  • 8
  • 22
0
votes
1 answer

Decode RealUrl url in the controller

I use RealUrl for my website. In my certain extension, I require to decode the url created by RealUrl to the normal TYPO3 url format. Example: To my controller I get this link : typo3website/feature/number/123 , now how do I convert this to…
user2354302
  • 1,833
  • 5
  • 23
  • 35
0
votes
1 answer

Why am I having trouble saving objects to the database in a typo3 extension?

Why won't my user and coupon objects get saved to the database when a new record is created? I am using typo3 v 4.5.30 and making a little extension (my first) to manage some coupons. When I create a coupon I save the creator (a frontenduser) and…
The Newbie Qs
  • 483
  • 8
  • 22
0
votes
1 answer

Post-Initialization in extbase domain model

In one of my extbase models, I want to initialize some properties derived from the properties that are saved in the database. The computation of these virtual properties is time consuming, so I'd like to cache them. Thus my program flow should look…
Jost
  • 5,948
  • 8
  • 42
  • 72
0
votes
2 answers

Tx_Extbase_Domain_Repository_FrontendUserRepository->findAll() not working in typo3 4.5.30?

I am trying to run a simple query off of the Tx_Extbase_Domain_Repository_FrontendUserRepository. I cannot get anything to work except findByUid(), not even findAll(). In my controller I have this code which seems to work: /** * @var…
The Newbie Qs
  • 483
  • 8
  • 22
0
votes
1 answer

does Typo3 v4.5.30 auto escape strings?

I am trying to debug an issue (not my own code) with strings getting escaped and re-escaped repeatedly as the item is resaved. The code uses mysql_real_escape_string but even though magic quotes are turned off the post variables are already quoted…
0
votes
1 answer

Where is ExtBase reference material available?

I am searching for a good source for understanding the userFunc = tx_extbase_core_bootstrap->run magic incantation. The seemingly autoritative documentation on forge (http://forge.typo3.org/projects/typo3v4-mvc/wiki/Documentation) starts off with…
norwebian
  • 820
  • 6
  • 12
0
votes
1 answer

Localization in tx_news extension TYPO3 6

I'm using News System Extension 2.1 for my website. My TYPO3 version is 6.1. The language key taken by tx_news is default, I would like to change the key to dk or nl or something. I changed the local language of TYPO3 using this: config.locale_all =…
user2354302
  • 1,833
  • 5
  • 23
  • 35
0
votes
2 answers

how to: use $message->render(); in typo3 v 4.5

I need to display a flash message but the message gets gobbled up by another extension, so can I do something like this: in my controller: $message = t3lib_div::makeInstance('t3lib_FlashMessage', 'Valid.', 'Message Header', t3lib_FlashMessage::OK,…
The Newbie Qs
  • 483
  • 8
  • 22
0
votes
1 answer

how to: display an image generated on the fly without writing it to disc - from a typo3 v4.5 extbase extension?

I am generating barcode images (using PHP-Barcode 0.4 http://www.ashberg.de/php-barcode/) with imagepgn but would rather not save them to disc - just seems unnecessary as the images aren't needed for long and they are small and quick to generate…
The Newbie Qs
  • 483
  • 8
  • 22
0
votes
2 answers

TYPO3 & pt_extbase Extension - eIDDispatcher always throws Exception "Could not analyse class"

Im Developing an Extbase Extension, in which i want to use AJAX Calls. I've found a great Extension, which should make it easy to execute AJAX Calls: pt_extbase In my localconf i registered the eID Skript an it works. The skript is working, till it…
Hayo
  • 240
  • 1
  • 2
  • 12
0
votes
1 answer

How can I change/mock services for my UnitTests?

I'm using typo3 6 with extbase and some dependency injection features. MyClass is injected with a service. The property which holds the service is protected. class MyClass { /** * * @var \X\Y\Z\MyService * @inject */ …
koalabruder
  • 2,794
  • 9
  • 33
  • 40
0
votes
1 answer

image-map in TYPO3 fluid templates

i'm writing a extension for TYPO3 with extbase and fluid. Herein I want to show an image-map. The problem with that is, that the fluid engine wraps my -tag with all its -tags in double-quotes and outputs them within a

-tag.…

stffn
  • 35
  • 2
0
votes
1 answer

Changing the query in a controller method in extbase

I used the extension builder to generate a base for my extension. But now I want to modify the output of my listAction() method: public function listAction() { $rooms = $this->roomRepository->findAll(); $this->view->assign('rooms',…
PilsenDude
  • 21
  • 2