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.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
Tutorial for using rest controller
That probably means format detection doesn't work, hasn't been set or passed properly in the request, or is misconfigured. You don't mention which FuelPHP version you are using. For 1.1, see http://fuelphp.com/dev-docs/general/contro…
Comment by
WanWizard
November 2011
permalink
User Registration Module?
This site isn't written in FuelPHP, so that option is out the window as to providing examples for you. I would opt for an auth driver that interacts with the backend authentication service. It allows you to use the rest of the Auth mechanism w…
Comment by
WanWizard
November 2011
permalink
Functional Tests?
Functional tests for controller methods are going to be complex if not impossible using an automated test tool like PHPUnit. For some controllers (those that require no input and produce static pages) you could get away with using PHPUnit and some …
Comment by
WanWizard
November 2011
permalink
oil refine migrate - not working as expected
See http://fuelphp.com/dev-docs/general/environments.html The official docs are in sync with the current released version, which is 1.0.1, where it worked a bit differently.
Comment by
WanWizard
November 2011
permalink
oil refine migrate - not working as expected
If DBUtil::create_table() is called without explicitly defining the charset, the charset will be loaded from the database config, like so: $charset = \Config::get('db.'.\Fuel::$env.'.charset', null); This means your environ…
Comment by
WanWizard
November 2011
permalink
Changing password without confirm old password
Extend the class and add an extra method to it that allows you to do that?
Comment by
WanWizard
November 2011
permalink
3 ways of rendering a view in FuelPHP
Controller_Template returns in the after() method, and it does return a Response object.
Comment by
WanWizard
September 2011
permalink
FuelPHP Forum Design
The current theme is in desperate need of an overhaul, we're aware of that. Our designer just has to find the time to squeeze it into his busy schedule...
Comment by
WanWizard
November 2011
permalink
subfolders and very long URIs
In most applications, there is no one-to-one mapping between the segments of the URI and your controller structure. Normally, functionality is grouped, and if needed routing is used to route multiple URI's to a single controller. Having said …
Comment by
WanWizard
November 2011
permalink
Autoloading Javascript and CSS?
Depends on where you create your view object. You could also use set_global(), so the variable is available in all views loaded.
Comment by
WanWizard
November 2011
permalink
Bootstap a module
If you take that route, you'll have to be very careful that that autoloader doesn't pick up any other classes then the intended ones...
Comment by
WanWizard
November 2011
permalink
Autoloading Javascript and CSS?
Use a base Controller, and in that controller (either in the constructor or the before() method, use something like // add our controller js if exists $js = \Asset::find_file( get_class( $this ), 'js' ) ) AND \Asset::js(…
Comment by
WanWizard
November 2011
permalink
Bootstap a module
FuelPHP's autoloader uses a cascading filesystem approach. You model must therefore be called Users_User to be autoloaded. If you want non-standard naming conventions, the easiest route will probably be to extend the autoloader, and update it …
Comment by
WanWizard
November 2011
permalink
using parser package
Ah. Email and Parser are now included by default? Learing all the time...
Comment by
WanWizard
September 2011
permalink
Bootstap a module
I'm not sure I understand what you exactly want. You don't load anything in FuelPHP. Ever. You just use it, and FuelPHP will make sure it's at your disposal. So in any class in your application you can call \Module\Class::method and …
Comment by
WanWizard
November 2011
permalink
using parser package
Parser and Email are optional packages, and therefore not included by default.
Comment by
WanWizard
September 2011
permalink
FuelPHP is it ready for real world applications?
In my experience, FuelPHP's ORM is one of the fastest around. It runs circles around my ORM for CI, Jelmer did an outstanding job here. You have to realize that every added layer of abstraction adds some processing, so an ORM is never as fast …
Comment by
WanWizard
October 2011
permalink
function add_path in Core Asset
I still don't get what you are trying to do. The root for any asset load is the DOCROOT, I assume in your setup that is the 'public_html' folder. Which from a browsers point of view, is "/" (hence the name docroot). From th…
Comment by
WanWizard
October 2011
permalink
function add_path in Core Asset
My point is that "../../assets/bla.js" means DOCROOT."../../assets/bla.js", which means you're constructing something that is not inside your docroot, but two directories up. Which is never going to work for an asset, since…
Comment by
WanWizard
October 2011
permalink
Validation trim and updating Input values
And as far as Sessions are concerned, the docs explain exactly how you should use them. It is not their job to inform them how NOT to use them. The fact that you link any session functionality to an array called $_SESSION is something we can't…
Comment by
WanWizard
October 2011
permalink
function add_path in Core Asset
Because the paths are used to construct the filename of the asset, and the filename is part of the rendered output (for example as a src attribute to a script tag), all assets should be inside the docroot. Going up beyond that is pretty pointless. …
Comment by
WanWizard
October 2011
permalink
Modules 1.1-RC1 - cannot get rid of warnings - example required
What is your definition of a "Module"? Module is a FuelPHP development concept, and as such, it can not be instantiated or called.
Comment by
WanWizard
October 2011
permalink
SSL
If you use autodetect, and the site is "hit" via https, than the base_url is set to https too, and all methods in Fuel that use the base_url will therefore also use https, including redirect. Perhaps something is wrong in your .htaccess r…
Comment by
WanWizard
October 2011
permalink
Model Calls - Non static
Ok, so the question is "how do I call a static method in the current class"? public static function three() { // call the static method two() in the current class. $result = static::two(); }
Comment by
WanWizard
October 2011
permalink
Common Pages
404 handling is documented here: http://fuelphp.com/dev-docs/general/404.html
Comment by
WanWizard
October 2011
permalink
More Comments
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
About
Username
WanWizard
Joined
January 2011
Visits
2,368
Last Active
9:34AM
Roles
Administrator