DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: ryzy_flash_rm

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2008-05-27T10:57:16
Author:Marcin ryzy Ryzycki
Email:marcin@ryzycki.pl
Info 3:
Info 4:

EXT: ryzy_flash_rm

Extension Key: ryzy_flash_rm

Copyright 2000-2002, Marcin ryzy Ryzycki, <marcin@ryzycki.pl>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

EXT: My Extension 1

Introduction 1

What does it do? 1

Screenshots 1

Users manual 1

FAQ 1

Adminstration 1

FAQ 2

Configuration 2

FAQ 2

Reference 2

Tutorial 2

Known problems 2

To-Do list 2

Changelog 2

Introduction

What does it do?

- This extensions adds Flash Remoting functionality to Your TYPO3 website. This extension defines new page (typeNum=263) where AMFPHP reside. In default, remoting services placed in /fileadmin/flash/services. Plugin contain AMFPHP (currently 1.9 beta 2 with PHP 5.2.2 path).

Screenshots

Service browser (included in AMFPHP since 1.9)

Users manual

The remoting gateway URL is: http://yoursite.com/?type=263 ). You can make them more speakable when set-up ReaURL to make them sth like http://yoursite.com/gateway.flash – example code included. See administration section.

I suppose that you known Flash Remoting, Flash, Action Script – so install this plugin (details in Administration section), make your own services, enter gateway address in flash application and use them.

This extensions works as USER_INT. So your services will work in a global TYPO3 namespace. You can use $GLOBALS[TSFE], $GLOBALS[TYPO3_DB] just like in your standard Typo3 plugin. An example method getFEUserObj included, see it in action below.

img-1

ServiceBrowser in TYPO3 BE. The method getFEUserObj returns overall TSFE->fe_user object – you probably known it. Nice, isn't it?

FAQ

- Please suggest your questions.

Adminstration

How to install plugin?

Download ryzy_flash_rm and install them from EM.

You must make folder fileadmin/flash/services and copy to them everything from ryzy_flash_rm/res/*. You should have fileadmin/flash/services/amfphp and fileadmin/flash/services/TestService.php after that.

When you type in browser http://yoursite/?type=263 you should see blank, white page (no errors etc)

Go to AMFPHP remoting browser, From 2.0.3 version there's a back-end module called Flash Remoting in Admin Tool section (thanks to Gijs Epping!). As always, it's also located at http://yoursite/typo3conf/ext/ryzy_flash_rm/amfphp2/browser/ . You see nice flash interface. At the first time you'll be asked at remoting gateway url. You must change the default to http://yoursite/?type=263 . Otherwise the default AMFPHP gateway will be used (not integrated with Typo3).

Disable sqlDebug to make sure no well-known cache_pagesection sql error occurred (insert $TYPO3_CONF_VARS['SYS']['sqlDebug'] = '0'; in typo3conf/localconf.php).

You should see TestService (see previous screenshots). Make your first call and enjoy it! ;)

Configuration

You can change the default service path in ryzy_flash_rm/amfphp/globals.php

Known problems

When you will be working with flash remoting, many errors can occurred and they're heavy to debug. Install Charles Web Debugging Proxy ( http://www.xk72.com/charles/ ) or ServiceCapture ( http://kevinlangdon.com/serviceCapture/ ) to debug remoting net traffic. When you have problem like this:

img-2

you will see something like this in Chales' response tab:

img-3

Switch to Text or Hex tab (bottom) and you'll know everything.

img-4

To-Do list

- A wish list of things you want to add or fix. This includes smaller problems/bugs which are best described as a todo item.

- Visions for what the extension could become with more development.

Changelog

  • 2.0.0 – First public release
  • 2.0.1 – Cosmetology, documentation included.
  • 2.0.3 – ServiceBrowser as BE-module (thanks to Gijs Epping).

img-5 EXT: ryzy_flash_rm - 5