FluidTYPO3 fluidpages – custom page controller not foundCan an ASP.NET MVC controller return an Image?Multiple types were found that match the controller named 'Home'FAL Upload, Extbase ExtensionTypo3 Fluidcontent Extension Register ControllerTYPO3 - 7.2 FLUID Error: file_get_contents() Filename emptyProblems loading helper class in own Typo3 Formhandler FinisherTYPO3 on provider not working but on localmaschineTYPO3: No template was found. View could not be resolved for actionTYPO3 extension autoloader not loading librariesTYPO3 9.2.1 Create ViewHelper in Composer Mode

For a non-Jew, is there a punishment for not observing the 7 Noahide Laws?

Anatomically Correct Strange Women In Ponds Distributing Swords

Applicability of Single Responsibility Principle

Proof of work - lottery approach

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

How to Reset Passwords on Multiple Websites Easily?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Where does the Z80 processor start executing from?

You cannot touch me, but I can touch you, who am I?

CREATE opcode: what does it really do?

Term for the "extreme-extension" version of a straw man fallacy?

How do I extract a value from a time formatted value in excel?

How does the UK government determine the size of a mandate?

What is the best translation for "slot" in the context of multiplayer video games?

Is expanding the research of a group into machine learning as a PhD student risky?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Did the DC-9 ever use RATO in revenue service?

How can a function with a hole (removable discontinuity) equal a function with no hole?

How easy is it to start Magic from scratch?

How do scammers retract money, while you can’t?

Is there a good way to store credentials outside of a password manager?

How do I find the solutions of the following equation?

Is there a problem with hiding "forgot password" until it's needed?



FluidTYPO3 fluidpages – custom page controller not found


Can an ASP.NET MVC controller return an Image?Multiple types were found that match the controller named 'Home'FAL Upload, Extbase ExtensionTypo3 Fluidcontent Extension Register ControllerTYPO3 - 7.2 FLUID Error: file_get_contents() Filename emptyProblems loading helper class in own Typo3 Formhandler FinisherTYPO3 on provider not working but on localmaschineTYPO3: No template was found. View could not be resolved for actionTYPO3 extension autoloader not loading librariesTYPO3 9.2.1 Create ViewHelper in Composer Mode













1















I am building a website with TYPO3 9.5 and the Fluid Powered TYPO3 extensions, and I will need to access GET and POST variables in my fluidpages templates.



I tried to create a custom PageController to do this ; here is the class I added in …myext/Classes/Controller/PageController.php :



<?php

namespace MyVendorMyExtController;

use FluidTYPO3FluidpagesController;

class PageController extends ControllerPageController

protected function initializeViewVariables()
parent::initializeViewVariables();
$GETarray = TYPO3CMSCoreUtilityGeneralUtility::_GET();
$this->view->assign('GET', $GETarray);




Unfortunately, this method never seems to be executed, as if my class weren’t found. When I display GET in the template file with <f:debug>GET</f:debug>, the result is always NULL whatever parameters I added in the URL. I tried assigning another, fixed variable with view->assign, and it’s NULL too. The code above does not have syntax errors, I’m using PHPStorm, which finds the parent class and shows that my initializeViewVariables method overrides the one in AbstractFluxController.



What I have tried :



  • I followed what the documentation explains here : registered my extension with a key of the form MyVendorName.Myextensionkey. I created a ClassAliasMap.php file, even though I don’t think it would be needed for TYPO3 9.5 ?

  • in the composer.json file in my extension, I added :

    "autoload": 
    "psr-4":
    "MyVendor\MyExt\": "Classes"




    and in the composer.json for my entire TYPO3 project, I put :

    "autoload": 
    "psr-4":
    "MyVendor\MyExt\": "public/typo3conf/ext/myext/Classes"




    and I have verified that this path appears in vendor/composer/autoload_psr4.php after I used the composer dump-autoload command. I also have the autoload information in the ext_emconf.php file

  • cleared all the caches in TYPO3

  • I don’t have any error message either in TYPO3 or in the Apache logs when I view the page

And it still doesn’t work. Autoloading works if I call a method of a class in the Typoscript of a page with userFunc, however. Do you see what I am missing?










share|improve this question




























    1















    I am building a website with TYPO3 9.5 and the Fluid Powered TYPO3 extensions, and I will need to access GET and POST variables in my fluidpages templates.



    I tried to create a custom PageController to do this ; here is the class I added in …myext/Classes/Controller/PageController.php :



    <?php

    namespace MyVendorMyExtController;

    use FluidTYPO3FluidpagesController;

    class PageController extends ControllerPageController

    protected function initializeViewVariables()
    parent::initializeViewVariables();
    $GETarray = TYPO3CMSCoreUtilityGeneralUtility::_GET();
    $this->view->assign('GET', $GETarray);




    Unfortunately, this method never seems to be executed, as if my class weren’t found. When I display GET in the template file with <f:debug>GET</f:debug>, the result is always NULL whatever parameters I added in the URL. I tried assigning another, fixed variable with view->assign, and it’s NULL too. The code above does not have syntax errors, I’m using PHPStorm, which finds the parent class and shows that my initializeViewVariables method overrides the one in AbstractFluxController.



    What I have tried :



    • I followed what the documentation explains here : registered my extension with a key of the form MyVendorName.Myextensionkey. I created a ClassAliasMap.php file, even though I don’t think it would be needed for TYPO3 9.5 ?

    • in the composer.json file in my extension, I added :

      "autoload": 
      "psr-4":
      "MyVendor\MyExt\": "Classes"




      and in the composer.json for my entire TYPO3 project, I put :

      "autoload": 
      "psr-4":
      "MyVendor\MyExt\": "public/typo3conf/ext/myext/Classes"




      and I have verified that this path appears in vendor/composer/autoload_psr4.php after I used the composer dump-autoload command. I also have the autoload information in the ext_emconf.php file

    • cleared all the caches in TYPO3

    • I don’t have any error message either in TYPO3 or in the Apache logs when I view the page

    And it still doesn’t work. Autoloading works if I call a method of a class in the Typoscript of a page with userFunc, however. Do you see what I am missing?










    share|improve this question


























      1












      1








      1








      I am building a website with TYPO3 9.5 and the Fluid Powered TYPO3 extensions, and I will need to access GET and POST variables in my fluidpages templates.



      I tried to create a custom PageController to do this ; here is the class I added in …myext/Classes/Controller/PageController.php :



      <?php

      namespace MyVendorMyExtController;

      use FluidTYPO3FluidpagesController;

      class PageController extends ControllerPageController

      protected function initializeViewVariables()
      parent::initializeViewVariables();
      $GETarray = TYPO3CMSCoreUtilityGeneralUtility::_GET();
      $this->view->assign('GET', $GETarray);




      Unfortunately, this method never seems to be executed, as if my class weren’t found. When I display GET in the template file with <f:debug>GET</f:debug>, the result is always NULL whatever parameters I added in the URL. I tried assigning another, fixed variable with view->assign, and it’s NULL too. The code above does not have syntax errors, I’m using PHPStorm, which finds the parent class and shows that my initializeViewVariables method overrides the one in AbstractFluxController.



      What I have tried :



      • I followed what the documentation explains here : registered my extension with a key of the form MyVendorName.Myextensionkey. I created a ClassAliasMap.php file, even though I don’t think it would be needed for TYPO3 9.5 ?

      • in the composer.json file in my extension, I added :

        "autoload": 
        "psr-4":
        "MyVendor\MyExt\": "Classes"




        and in the composer.json for my entire TYPO3 project, I put :

        "autoload": 
        "psr-4":
        "MyVendor\MyExt\": "public/typo3conf/ext/myext/Classes"




        and I have verified that this path appears in vendor/composer/autoload_psr4.php after I used the composer dump-autoload command. I also have the autoload information in the ext_emconf.php file

      • cleared all the caches in TYPO3

      • I don’t have any error message either in TYPO3 or in the Apache logs when I view the page

      And it still doesn’t work. Autoloading works if I call a method of a class in the Typoscript of a page with userFunc, however. Do you see what I am missing?










      share|improve this question
















      I am building a website with TYPO3 9.5 and the Fluid Powered TYPO3 extensions, and I will need to access GET and POST variables in my fluidpages templates.



      I tried to create a custom PageController to do this ; here is the class I added in …myext/Classes/Controller/PageController.php :



      <?php

      namespace MyVendorMyExtController;

      use FluidTYPO3FluidpagesController;

      class PageController extends ControllerPageController

      protected function initializeViewVariables()
      parent::initializeViewVariables();
      $GETarray = TYPO3CMSCoreUtilityGeneralUtility::_GET();
      $this->view->assign('GET', $GETarray);




      Unfortunately, this method never seems to be executed, as if my class weren’t found. When I display GET in the template file with <f:debug>GET</f:debug>, the result is always NULL whatever parameters I added in the URL. I tried assigning another, fixed variable with view->assign, and it’s NULL too. The code above does not have syntax errors, I’m using PHPStorm, which finds the parent class and shows that my initializeViewVariables method overrides the one in AbstractFluxController.



      What I have tried :



      • I followed what the documentation explains here : registered my extension with a key of the form MyVendorName.Myextensionkey. I created a ClassAliasMap.php file, even though I don’t think it would be needed for TYPO3 9.5 ?

      • in the composer.json file in my extension, I added :

        "autoload": 
        "psr-4":
        "MyVendor\MyExt\": "Classes"




        and in the composer.json for my entire TYPO3 project, I put :

        "autoload": 
        "psr-4":
        "MyVendor\MyExt\": "public/typo3conf/ext/myext/Classes"




        and I have verified that this path appears in vendor/composer/autoload_psr4.php after I used the composer dump-autoload command. I also have the autoload information in the ext_emconf.php file

      • cleared all the caches in TYPO3

      • I don’t have any error message either in TYPO3 or in the Apache logs when I view the page

      And it still doesn’t work. Autoloading works if I call a method of a class in the Typoscript of a page with userFunc, however. Do you see what I am missing?







      controller typo3 fluid typo3-9.x






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 12:58







      user1738984

















      asked Mar 5 at 14:33









      user1738984user1738984

      199129




      199129






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Answering my own question for now (hopefully I will be able to add more details later) : in order to have the above Controller be called for a certain page, we need to add an action, even an empty one, with the same name as the template. For example if our page template is Foo.html, it will work if we add an action method :



          public function fooAction() 




          to the PageController class






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55005184%2ffluidtypo3-fluidpages-custom-page-controller-not-found%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Answering my own question for now (hopefully I will be able to add more details later) : in order to have the above Controller be called for a certain page, we need to add an action, even an empty one, with the same name as the template. For example if our page template is Foo.html, it will work if we add an action method :



            public function fooAction() 




            to the PageController class






            share|improve this answer



























              0














              Answering my own question for now (hopefully I will be able to add more details later) : in order to have the above Controller be called for a certain page, we need to add an action, even an empty one, with the same name as the template. For example if our page template is Foo.html, it will work if we add an action method :



              public function fooAction() 




              to the PageController class






              share|improve this answer

























                0












                0








                0







                Answering my own question for now (hopefully I will be able to add more details later) : in order to have the above Controller be called for a certain page, we need to add an action, even an empty one, with the same name as the template. For example if our page template is Foo.html, it will work if we add an action method :



                public function fooAction() 




                to the PageController class






                share|improve this answer













                Answering my own question for now (hopefully I will be able to add more details later) : in order to have the above Controller be called for a certain page, we need to add an action, even an empty one, with the same name as the template. For example if our page template is Foo.html, it will work if we add an action method :



                public function fooAction() 




                to the PageController class







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 21 at 12:46









                user1738984user1738984

                199129




                199129





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55005184%2ffluidtypo3-fluidpages-custom-page-controller-not-found%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

                    Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

                    Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved