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
Base Controller
The before() method is always called before any controller method is called, as such it is a replacement for using the constructor. The constructor itself is in use by Fuel to assign the internal connections from the request to the controller and f…
Comment by
Jelmer Schreuder
April 2011
permalink
ORM many:many - relation
Full config with default values: // in Model_User protected static $_many_many = array( 'groups' => array( 'key_from' => 'id', 'key_through_from' => 'user_id', …
Comment by
Jelmer Schreuder
April 2011
permalink
Orm FrozenObject Error
I created an issue in the bugtracker for this, any further updates will go there: http://dev.fuelphp.com/issues/97
Comment by
Jelmer Schreuder
April 2011
permalink
Base Controller
We're going to need a bit more details here. But probably this is because you're extending the template controller and overwriting the __construct() method? You need to copy-paste the exact method signature (params and all) to your own ex…
Comment by
Jelmer Schreuder
April 2011
permalink
Orm FrozenObject Error
I'm going to go out on a limb here and suggest this might just be related...
Comment by
Jelmer Schreuder
April 2011
permalink
Pagination
In Fuel we have "Output filtering" instead of input filtering by default as of RC1 (you can switch this if you want in app/config/config.php), this means that anything passed to the view gets pushed through htmlentities to prevent XSS. Da…
Comment by
Jelmer Schreuder
April 2011
permalink
ORM many:many - relation
You need to create an in between table, by default this would be named the plural of both in alfabetical order. For instance many-many with Model_User & Model_Group would need a table named 'groups_users' (you can change this by setti…
Comment by
Jelmer Schreuder
April 2011
permalink
Orm FrozenObject Error
I think you found a bug, your code looks a lot like the code I've used to test the Orm code but still I think it's a bug. What happens is that you can "freeze" an object, which means it cannot be changed until you "unfreeze…
Comment by
Jelmer Schreuder
April 2011
permalink
ORM Relations with Package ORM
@David That should get its own topic, post it there with the code that precedes it and I'll try to help you out.
Comment by
Jelmer Schreuder
April 2011
permalink
ORM JOINS
It won't auto-include any relations, there's a couple of options to get them: // eager loading, using joins: $music = Model_Music::find('all', array('related' => array('lists'))); // or $music = Model_Mu…
Comment by
Jelmer Schreuder
April 2011
permalink
ORM Relations with Package ORM
Next time put your code between [ code] and [/ code] tags (without the spaces), I did it for you this time. The problem is that there's no way in your table setup for it to know which books belong to which authors. You need to change the relat…
Comment by
Jelmer Schreuder
April 2011
permalink
Stationwagon
In Fuel we have "Output filtering" instead of input filtering by default (you can switch this if you want in app/config/config.php), this means that anything passed to the view gets pushed through htmlentities to prevent XSS. Dan explaine…
Comment by
Jelmer Schreuder
February 2011
permalink
How often is the Fuel-1.0-rc1 updated
A next version is up to the number of bugs found in the current release, if those are relatively few we'll probably have 1.0 final in a week or two - if the number is larger we'll probably have an RC2. We'll see how that turns out. W…
Comment by
Jelmer Schreuder
April 2011
permalink
How often is the Fuel-1.0-rc1 updated
We did rerelease the package this time after about 24 hours with a couple of hotfixes, but in general we don't. Versions are (and should be) static. We may offer nightly builds later on, but that's not at the top of our priorities - peopl…
Comment by
Jelmer Schreuder
April 2011
permalink
AR documentation, pagination, security
My first suggestion would be to try and read the docs, there's a lot of answers in there already. Is there any documentation for the Active Records system? Does it support transaction too ? ORM is nice but it gets too many records. One-to-…
Comment by
Jelmer Schreuder
April 2011
permalink
Extending Packages (ex. Auth)
How it works always depends on how it was implemented. Auth being a "core" package in this way means you can extend a driver in the original namespace to the global namespace under the same name in a way that it'll be used by the ori…
Comment by
Jelmer Schreuder
March 2011
permalink
Extending Packages (ex. Auth)
@kelSO.B I'll try and have the docs on extending the Auth drivers ready by thursday for the RC release. The Auth package is considered a "core" package which means you can extend it from you app. Create a file in fuel/app/classes/a…
Comment by
Jelmer Schreuder
March 2011
permalink
Is There Any Built-In Solution to Show Notification Messages?
We've removed the output class and replaced it with the Response class, this means that to create the output you no longer use $this->output in your controller but instead: // add to the current body $this->response->body .= 'som…
Comment by
Jelmer Schreuder
March 2011
permalink
Create base controller from template controller?
Do you have a before() method in there? And if so does it call parent::before()? Otherwise the template property isn't instantiated. Try to guess what I tried to suggest you change about your before() method in my quote above...
Comment by
Jelmer Schreuder
March 2011
permalink
Create base controller from template controller?
Do you have a before() method in there? And if so does it call parent::before()? Otherwise the template property isn't instantiated.
Comment by
Jelmer Schreuder
March 2011
permalink
DB::select() Always Return 'true'
First of all: before converting to boolean you should try to see what you actually get. If you had used var_dump($query) or Debug::dump($query) you'd have seen that what you get is a Database_Query_Builder_Select object. This query object doe…
Comment by
Jelmer Schreuder
March 2011
permalink
FuelPHP 1 - Zend 2 - Symfony 2 - Kohana 3 - Yii 1
This is most often a very non interesting discussion as some people have very fan-like responses, others have made their choice and stick with it, but those that have done some real work with multiple frameworks rarely speak up. We try to be for PH…
Comment by
Jelmer Schreuder
March 2011
permalink
\ in front of objects
Read up on namespaces, which is pretty much what this topic is about.
Comment by
Jelmer Schreuder
January 2011
permalink
Please recommend to me great tutorials to learn PHP OOP, so I can read the core code & understand.
Lots is explained on php.net, there's good documentation there for pretty much every part of the language. Having said that you'll probably want to learn a bit about larger concepts: - Static classes and late static binding (the latter b…
Comment by
Jelmer Schreuder
March 2011
permalink
$validation->valid_string()
There's nothing wrong with the valid_string() method, it's just that it doesn't exist as such. ->add_rule( 'valid_string', array( 'alpha', 'uppercase', 'lowercase', 'numeric', …
Comment by
Jelmer Schreuder
March 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