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.
Jelmer Schreuder
Fuel core developer, check my bio on the about page.
Discussions
1
Comments
792
Activity
Missing Doc
We are aware, and we're still in beta so that should make it clear not everything is finished. Feel free to contribute however to the github.com/fuel/docs.
Comment by
Jelmer Schreuder
January 2011
permalink
What are differences between before() and __construct()?
The Constructor is used by Fuel, you can extend it but if you do you need to copy its parents behavior in order not to break it. "before()" is just an easier alternative. after() is called directly after your controller method was called …
Comment by
Jelmer Schreuder
January 2011
permalink
Fieldset class issue
The issue with the form() and validation() methods of Fieldset has been solved.
Comment by
Jelmer Schreuder
January 2011
permalink
\ in front of objects
Also one very important point: they're in front of classes, not objects. May seem a small difference to some, but is a very important distinction.
Comment by
Jelmer Schreuder
January 2011
permalink
Routes
Just add a route to 404 from "(:any)" last and anything that wasn't added before it will match the :any route and be routed to the 404. '(:any)' => 'welcome/404'
Comment by
Jelmer Schreuder
January 2011
permalink
Fieldset class issue
These 2 things about ViewModels are correct: I thought it was to add another layer to views. The way I understood it was a ViewModel was an additional place to build stuff to display in the View However the Fieldset::add_model() method for…
Comment by
Jelmer Schreuder
January 2011
permalink
Fieldset class issue
I'll look into this shortly, for the future: make bug reports on either Github or dev.fuelphp.com - that's where we look which bugs need fixing. The forums are for community support. Good job on the fieldset class it makes life a lot …
Comment by
Jelmer Schreuder
January 2011
permalink
Route for Vanity URL
Very different, even though they appear similar. The $route approach only allows the controllers which are defined in routing to be used. Because anything will match that :any rule (except the routes you define before it). The 404 approach, is not …
Comment by
Jelmer Schreuder
January 2011
permalink
Bug of the Website
The DB class is indeed a port of Kohana's, but ActiveRecord is NOT like php.activerecord. Our ActiveRecord is a rewrite of the ActiveRecord implementation by Luke Baker, his docs are still more or less acurate: http://lukebaker.org/projects/ac…
Comment by
Jelmer Schreuder
January 2011
permalink
Can't use Modules in app/classes/controller
The problem is that for this to work you can't use echo in the controller (always a bad idea btw) and you have to assign the output to $this->output within the controller. If you do that this should work fine (the Request object is fully in…
Comment by
Jelmer Schreuder
January 2011
permalink
Can't use Modules in app/classes/controller
Are you getting an error or what is produced by this? We always need the real error you're getting, preferably with line nr, file path & backtrace. (or a screenshot)
Comment by
Jelmer Schreuder
January 2011
permalink
Uri class - string function
I don't think this will be something many people need, and if you want it the code isn't that hard to write: implode('/', array_slice(Uri::segments(), 1, 3)); Though you did just make me realize the Uri::segments() method is…
Comment by
Jelmer Schreuder
January 2011
permalink
Coding Standards
This was decided before I got on the team, but I know it's the coding style preference of both Phil & Dan. To be honest I personally don't care, as long as we're conistent. A lot of us, the 4 main devs in particular, come from CI…
Comment by
Jelmer Schreuder
January 2011
permalink
More logical to move the App directory outside of the fuel directory
Guys this is already the case, Fuel's setup out of the box is as follows: - fuel --- app --- fuel core --- packages - public_docs Which means that the "fuel" dir is nothing more than a container for both the core & the app, n…
Comment by
Jelmer Schreuder
January 2011
permalink
Route for Vanity URL
You can use the 404 route as a catch all. Something like this: '404' => 'profiles/view', You'll have to access the arguements through Uri::string() or Uri::segment(1) though, they won't be given to your Controlle…
Comment by
Jelmer Schreuder
January 2011
permalink
DataMapper for FUEL
Currently we have a lightweight ORM in there called ActiveRecord.
Comment by
Jelmer Schreuder
January 2011
permalink
How do I use Oil on Windows?
Pretty much the same as on linux or anything else. Just use the windows command prompt and put PHP before it. On my laptop with XAMPP installed the full command I give looks like this when in the dir with the oil file: c:\xampp\php\php.exe oil g c…
Comment by
Jelmer Schreuder
January 2011
permalink
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
Jelmer Schreuder
Joined
January 2011
Visits
7
Last Active
May 2016
Roles
Administrator