... - modules - test - classes - controller - test.php - views - test.php
// View call with location hardcoding $view = \View::factory(strtolower(__NAMESPACE__) . '::test'); .... return $view->render();
$file = pathinfo($file, PATHINFO_DIRNAME).DS.pathinfo($file, PATHINFO_FILENAME);
$file = basename($file, '.'.$extension);
\Fuel::add_package('parser'); \Fuel::add_module('test'); $this->response->body = \View::factory('test::test/index.php');
// View call with location hardcoding $view = \View::factory(strtolower(__NAMESPACE__) . '::test'); .... return $view->render();from module. In controller I specify :
$widget = Event::trigger('test');
<?php namespace Plugins; class Controller_Plugin1 { public static function init() { \Event::register('test', strtolower(__CLASS__) . '::test'); } public static function test() { $view = \View::factory(strtolower(__NAMESPACE__) . '::test'); //$view = \View::factory(strtolower(__NAMESPACE__) . '::test.twig'); //$view = \View::factory(strtolower(__NAMESPACE__) . '::test.mustache'); //$view = \View::factory(strtolower(__NAMESPACE__) . '::test.stags'); //$view = \View::factory(strtolower(__NAMESPACE__) . '::test.dwoo'); $view->variabile = 'Whoooaaaaaa!'; return $view->render(); } }
app ... - modules - plugins - classes - controller - plugin1.php - views - test.php
Yes I'm using PHP 5.3.5 on Apache 2.0That even happens when you hard-code 'plugins::test'?
It looks like you're new here. If you want to get involved, click one of these buttons!