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
8243
Activity
Wrap Fieldset elements with divs
The HTML for a fieldset is generated using the template, and that is valid for the entire fieldset. If you need specials, you'll have to generate the form manually, using In 1.4/develop the fieldset has new enable/disable methods
Comment by
WanWizard
October 2012
permalink
i18n in Fuel
I haven't got a clue that you're trying to achieve, so maybe you can start by explaining that? I don't really have time to go through some CI code to find out. If if it's about having language codes in your URI's, add some …
Comment by
WanWizard
October 2012
permalink
Two questions - DB and Custom functions
They are not because in Fuel everything is a class. We don't do "functions". The solution the TS came up with is indeed the way to go. If you do need procedural functions, you can define them in your app bootstrap, or create a separa…
Comment by
WanWizard
October 2012
permalink
As_Object & count(*) - extra fields not in the model
An ORM model doesn't support additional properties, it will throw an exeception when you try to set one. Custom property support has been implemented for ORM in 1.4/develop, but not sure if it will fix this case, I haven't checked the con…
Comment by
WanWizard
October 2012
permalink
Rest controller: what it is?
The Controller_Rest (and Controller_Hybrid) are base controllers for making a REST API, see http://en.wikipedia.org/wiki/Representational_state_transfer
Comment by
WanWizard
October 2012
permalink
Better use of ORM?
Ok, in that case you're "friends" are not pre-fetched, and accessing the property will fire a "SELECT * FROM friends WHERE user_id = x" query.
Comment by
WanWizard
October 2012
permalink
FuelPHP-s learning curve compared to CodeIgniter
Nothing to worry about, all dev's work on the entire framework. Jelmer has written the ORM, I now maintain it because Jelmer's working on the 2.0 core now.
Comment by
WanWizard
October 2012
permalink
FuelPHP-s learning curve compared to CodeIgniter
Let's go through the percived cons in this post: Might be a bit too much to understand for a beginner to intermediate Codeigniter user or PHP developer due to how the file system is laid out. There might be a lot of reasons why you could say F…
Comment by
WanWizard
October 2012
permalink
Better use of ORM?
What I mean with eager loading is that when you ran the query to fetch $this->current_user, if you have included "->related('friends')" (or the same in array notation), a join is executed to fetch both the current_user and…
Comment by
WanWizard
October 2012
permalink
Better use of ORM?
I don't see an immediate improvement. If "friends" isn't eager loaded, this will fire a "SELECT *" on friends. In that case it would be better to do something like this: $friends = array(); $result = Model_Friends::qu…
Comment by
WanWizard
October 2012
permalink
GPS in URI
You can't have dots in the URI, dots are used to identify extensions, and for REST controllers return data format. If you want to do this, urlencode it.
Comment by
WanWizard
October 2012
permalink
Directory recursive iterator
See http://docs.fuelphp.com/classes/file/usage.html#/method_read_dir If you want directories only, you need to include a filter that excludes files, and lists only directories: // Read directories only $contents = File::read_dir($youruploaddir, 0, …
Comment by
WanWizard
October 2012
permalink
FuelPHP-s learning curve compared to CodeIgniter
I don't think so, but I can't comment on your learning skills...
Comment by
WanWizard
October 2012
permalink
Problems with Sessions - flash message
Glad you've got it sorted!
Comment by
WanWizard
September 2012
permalink
Problems with Sessions - flash message
Marcus, I did some analysis on the links you have, and noticed something odd. I did a request at 14:09 local time (I'm at GMT+1). The response header on the set_message link says: - Date: Tue, 02 Oct 2012 10:09:35 GMT - Set-Cookie: fuelcid=c…
Comment by
WanWizard
September 2012
permalink
Problems with Sessions - flash message
That index file looks ok, no Event class call in there. Which leaves me puzzled as to where the extra cookie entries come from. Fuel updates the session in a shutdown event, which is triggered only once, at the end of the request. What problems did…
Comment by
WanWizard
September 2012
permalink
Orm Model with dynamic/generated properties
Adding custom properties has been added in 1.4/develop, so if you require that you'll have to switch versions. This version will work fine with a 1.3 core.
Comment by
WanWizard
October 2012
permalink
Request class fais to retrieve URI with .'format' and related issues
That also works, and is perhaps cleaner as it really mimics an AJAX request.
Comment by
WanWizard
October 2012
permalink
How to find Fuelphp developers?
Pop into IRC (#fuelphp on freenode), there are always people around, and some of the core dev's also accept paid work.
Comment by
WanWizard
October 2012
permalink
Request class fais to retrieve URI with .'format' and related issues
The REST controller expects to be called by an AJAX call. If you want to test that, you need to fake that. Easiest is to add this to the init method or the constructor: // fake an AJAX request! $_SERVER['HTTP_X_REQUESTED_WITH'] = 'xm…
Comment by
WanWizard
October 2012
permalink
Problems with Sessions - flash message
How come you've got multiple cookies in the header? Did you start on something < v1.2, and upgraded to v1.3 or v1.4? If so, did you also upgrade your index.php? If you didn't do that, you'll have an Event class in your index.php …
Comment by
WanWizard
September 2012
permalink
Problems with Sessions - flash message
Maybe something in the server config? Or a caching issue somewhere? Can you analyze the traffic between server and client (like FF can with live headers) to see if the server does sent you the session cookie at all?
Comment by
WanWizard
September 2012
permalink
Problems with Sessions - flash message
I just tried http://bellatrix.pegasusnetworks.de/tutorialcontrol/public/users/login from here, and I see a message pop up (account locked) after I try to login. Looks fine to me. I'm using FF 15. Are you testing with IE by any chance? Some ver…
Comment by
WanWizard
September 2012
permalink
Problems with Sessions - flash message
I honestly haven't got a clue. I can't think of anything environment dependent that would make flash message not work, other then cookie issues. But you've checked that, and confirmed the session data is stored correctly.
Comment by
WanWizard
September 2012
permalink
Fieldset class and bootstrap twitter
Because they are not valid attributes for the HTML label tag. And in your example the 'label' should be inside the 'form' array, it's part of the form definition, not of the property definition.
Comment by
WanWizard
May 2012
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,384
Last Active
11:04PM
Roles
Administrator