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
POST and GET
http://fuelphp.com/docs/classes/input.html And no, we don't offer a way to write to $_POST. That's just incredibly bad practice, the $_POST variable is of course still available though.
Comment by
Jelmer Schreuder
March 2011
permalink
Validation::factory() without Any Args Throws Error!
This is a bug in beta1 that has since been fixed.
Comment by
Jelmer Schreuder
March 2011
permalink
Validation add_model method
Quite simply that means Validation can't find your Unique rule. Did you follow the documentation and is it named correctly? If that all matches I'm going to need to know way more and have some code-snippets of your implementation to know …
Comment by
Jelmer Schreuder
March 2011
permalink
Validation add_model method
That would suggest it's not a valid classname. The Validation::add_model() uses Validation::add_callable() and that checks if the given value is either an object or a valid class using is_object() and class_exists(). In other words: the class …
Comment by
Jelmer Schreuder
March 2011
permalink
Introducting PDF Package for Fuel.
Great work! I forked it into the packages account.
Comment by
Jelmer Schreuder
March 2011
permalink
Database Transactions
five07, I have been a bit confused about the direction Database & ActiveRecord are going. I notice ActiveRecord uses DB right now, but I read some discussion on PHPActiveRecord (http://fuelphp.com/forums/posts/view_reply/212), which indicat…
Comment by
Jelmer Schreuder
February 2011
permalink
Database namespace error..?
If transactions are going to be supported they'd be in the querybuilder and support for them in a new ORM package would be through that QB. Having said that, this is mostly Dan's area so you'll have to ask him to get a more definitiv…
Comment by
Jelmer Schreuder
March 2011
permalink
Introducting PDF Package for Fuel.
Hey Ben, I checked it out and there's one problem with it I'll wait for you to fix before forking: there's a dependency on another package of yours.
Comment by
Jelmer Schreuder
March 2011
permalink
Database namespace error..?
AR is currently being rewritten, one of the reasons being that it lacks a bit in how much can be configured. The table name however can already be configured, just add a property in your model definition: class Model_Example extends ActiveRecord\Mo…
Comment by
Jelmer Schreuder
March 2011
permalink
Repopulate Method
repopulate() should be run before any other manipulation is done on the fieldset, it can't just check if there's a value already because repopulating should overwrite default values. If you want a value to always be overwritten you have t…
Comment by
Jelmer Schreuder
March 2011
permalink
Database namespace error..?
PHP native functions should be taken from the root namespace, with or without backslash prefix. That it causes this error would suggest you got a PHP version that is compiled without the mysql plugin that has the functions prefixed with mysql_, are…
Comment by
Jelmer Schreuder
March 2011
permalink
Using Template Controller within module
You forgot the backslash before "View", now it tries to get the View class from the Registration namespace. Exactly as the Error message says. You need to add the slash to the requesting the view: $this->template->content = \View::f…
Comment by
Jelmer Schreuder
March 2011
permalink
Passing variables to a ViewModel
The ViewModel is explained in the User Guide. [edit]Also next time: read the topic before asking the question that was answered in the post you're actually replying to.[/edit] It's one extra level of seperation, where you seperate the …
Comment by
Jelmer Schreuder
February 2011
permalink
Passing variables to a ViewModel
drifitz drifitz wrote on 02/27/11 3:34 am: Hi I'm trying to figure out whether I should be using this so I have a question about ViewModels. What are the benefits of using a ViewModel to set data, rather than set it directly in the controlle…
Comment by
Jelmer Schreuder
February 2011
permalink
Passing variables to a ViewModel
It can be done like this in the controller: // assign the created viewmodel to a variable $vm = ViewModel::factory('Index'); // Set anything just on it $vm->variable = 'value'; Generally it's bad practice though, thi…
Comment by
Jelmer Schreuder
February 2011
permalink
Form Helper Class
I'm quite sure it could use some tuning, feel free to do so and pull-request. For example: form_open_multipart() I guess you mean Form::open_multipart() , it could be added but not absolutely neccesary. The following works just fine as we…
Comment by
Jelmer Schreuder
January 2011
permalink
Controller in package
Good point, gotta think about this one...
Comment by
Jelmer Schreuder
February 2011
permalink
Controller in package
- Dynamic Routing Extend the Router class and make it work however you want - Package controllers Nothing is stopping you, it's just not what it's meant to do. Packages are non-application specific non-routable functional extensions of …
Comment by
Jelmer Schreuder
February 2011
permalink
Controller in package
As I said, I think it should be a module instead of a package if you want it routable. But in this case I'd suggest to just create a function that one can put in any controller method and does all this. One other pointer, we have an output cla…
Comment by
Jelmer Schreuder
February 2011
permalink
Controller in package
If it's loadable by the autoloader it can be used as a controller. Thus must be in global namespace and registered in bootstrap.php. It is bad-practice though, packages are functional additions to Fuel - not front-end. If you need a controller…
Comment by
Jelmer Schreuder
February 2011
permalink
Uri class
You'd be right if it were only about the Uri in a MVC framework, Fuel is HMVC however by design. Which means that any request has these settings and the active request is the one you're currently in. In a HMVC request these values will be…
Comment by
Jelmer Schreuder
February 2011
permalink
Uri class
We don't really have routed segments, the important parts are saved with the Request object: Request::active()->module // current module Request::active()->directory // current controller directory Request::active()->controller // c…
Comment by
Jelmer Schreuder
February 2011
permalink
DB docs for Fuel
Excerpt from the above manual: You can use any operator you want. Examples include IN, BETWEEN, >, =from('users')->where('username', 'IN', array('john','mark','matt'));
Comment by
Jelmer Schreuder
February 2011
permalink
DB docs for Fuel
Even though I don't like everything about this DB class it is a lot more flexible than CI's in my experience. Your main point seems to be that ->where() doesn't take array, which may be a nice feature suggestion. Also you can alre…
Comment by
Jelmer Schreuder
February 2011
permalink
DB docs for Fuel
What's wrong with: DB::select()->from('table') ->where('column1', '=', 'foo') ->where('column2', '=', 'bar') ->execute();
Comment by
Jelmer Schreuder
February 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
Jelmer Schreuder
Joined
January 2011
Visits
7
Last Active
May 2016
Roles
Administrator