Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Views not work in Modules.
kuwa
May 2013
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 */
http://localhost/login/foo/bar
-----------------------------------------------------------------------------
/* 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/" ?
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52