Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Views not work in Modules.
  • OK, It's solved.

    "modules/login/classes/views" was wrong.
    thid dir move to "modules/login/views", worked....oh...sorry.



    =======================================================

    Hello, please help me...

    -----------------------------------------------------------------------------
    /* config */

    fuel/app/config/config.php

    'module_paths' => array(
      APPPATH.'modules'.DS,
    ),
    -----------------------------------------------------------------------------

    /* pathes */

    I moved 2 files to modules dir.

    fuel/app/modules/login/classes/controller/foo.php
    fuel/app/modules/login/classes/views/template.php

    -----------------------------------------------------------------------------
    /* classes */

    fuel/app/modules/login/classes/controller/foo.php
    <?php 
      namespace Login;
      class Controller_Foo extends \Controller
      {

        public function action_bar()
        {

          return \View::forge('template');

        }

      } 

    -----------------------------------------------------------------------------
    /* access url */


    -----------------------------------------------------------------------------
    /* result */

    Error!
    Fuel\Core\FuelException [ Error ]: The requested view could not be found: temmplate
    -----------------------------------------------------------------------------

    But, this "template.php" file I copy from "...modules/login/classes/views/" to "fiel/app/views/", it's work.

    How change views dir "fiel/app/views/" to "...modules/login/classes/views/" ?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!