[TYPO3-mvc] POST/GET vars

Dawid Pacholczyk dpacholczyk at gmail.com
Thu Oct 28 10:42:47 CEST 2010


No it doesn`t work and I don`t know why :/ I feel stupid :P You helped me a
lot and I can`t move it forward

this is my setup.txt

plugin.tx_dpposter.settings {
}

plugin.tx_dpposter._CSS_DEFAULT_STYLE (
    input.f3-form-error {
        background-color:#FF9F9F;
        border: 1px #FF0000 solid;
    }

    .tx-dpposter-pi1 table {
        border-collapse:separate;
        border-spacing:10px;
    }

    .tx-dpposter-pi1 table th {
        font-weight:bold;
    }

    .tx-dpposter-pi1 table td {
        vertical-align:top;
    }
)

plugin.tx_dpposter_pi1.view.pluginNamespace = tx_ttnews or
plugin.tx_dpposter.view.pluginNamespace = tx_ttnews


my indexAction()

    /**
     * @param integer $tt_news news article uid
     * @return void
     */
public function indexAction($tt_news) {
        debug($tt_news, 'current tt_news uid');
    }

and still i get

Error: Required property 'tt_news' does not exist.

my url look like this.

http://something.loc/index.php?id=2&tx_ttnews[tt_news]=1&no_cache=1

is there something wrong ? should I declare it else where ?


2010/10/28 Bastian Waidelich <bastian at typo3.org>

> Dawid Pacholczyk wrote:
>
> Hi Dawid,
> I think, you misunderstood me ;)
>
>
>  Ext key: dp_poster
>> Ext name: Poster
>>
>> How can I get plugin name ? Where is it set ?
>>
>
> It depends on how you named it ;)
> Somewhere in your ext_localconf.php you should find the configuration of
> your plugin(s). S.th. like
> Tx_Extbase_Utility_Extension::configurePlugin(
>        $_EXTKEY,
>        'FooBar',
>        array('Controller1' => 'index,someOtherAction')
> );
>
> Now your plugin name would be "FooBar".
>
>
>
>  Cause I tried something like that
>>
>> plugin.tx_dpposter_plugin.view.tx_dpposter_dpposter = tx_ttnews
>>
>> and
>>
>> plugin.tx_dpposter.view.tx_dpposter_dpposter = tx_ttnews
>>
>
> When I wrote
>
> "plugin.tx_yourext.view.pluginNamespace = tx_ttnews"
>
> I should have mentioned, that you only have to replace "tx_yourext" with
> your extension namespace. So in your example it would be:
>
> plugin.tx_dpposter.view.pluginNamespace = tx_ttnews
>
> or
>
> plugin.tx_dpposter_foobar.view.pluginNamespace = tx_ttnews (where you
> replace "foobar" with your plugin name (lowercased)
>
>
> Does that work?
> Bastian
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



-- 
Dawid Pacholczyk
tel: 502-054-334
gg: 5564051
skype: dpacholczyk
http://typo3blog.pl (only polish version at the moment)


More information about the TYPO3-project-typo3v4mvc mailing list