[TYPO3-mvc] How to properly set view

Christine Gerpheide cgerpheide at gmail.com
Thu Oct 21 14:30:00 CEST 2010


2010/10/21 Dawid Pacholczyk <dpacholczyk at gmail.com>

> Hello List, again :)
>
> Damn I have a lot of questions. But at the moment I`m wondering about one
> thing.
>
> In old school programming I was getting the view from flexform, than
> checked
> it with switch and use the proper function
>
> How to use/set properly view ?
>
> In ext_localconf I`ve set default controller and action for example ->
> array(
>        // An array holding the controller-action-combinations that are
> accessible
>        'Article' => 'index,show,new,create,delet';
>
> And now. I want to make LIST, SINGLE, LATEST view
>
> Should I make in indexAction of articleController something like that: ??
>
> switch($this->settings['view']) {
>  case 'LIST':
>   $this->listAction();
> ....
> ...
>
>
> Or maybe it works diffrent way now ?
>
> Best regards,
> Dawid "Fixus" Pacholczyk
>
> --
> Dawid Pacholczyk
> tel: 502-054-334
> gg: 5564051
> skype: dpacholczyk
> http://typo3blog.pl (only polish version at the moment)
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


Hi again :)

Try looking up "switchableControllerActions", which can be defined from a
flexform or TS.  This will dictate which action is run, which as a result
will render the corresponding action.

Christine

-- 
Christine Gerpheide   ✈ larissa, greece   @ www.pheide.com


More information about the TYPO3-project-typo3v4mvc mailing list