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
Possible find_by_* bug?
Can't see anything wrong with it, no obvious reasons why it would return the incorrect results.
Comment by
WanWizard
July 2012
permalink
Fuel PDO with PHP_ODBC
Had a peek in the C++ source of the PDO ODBC driver. This looks like a bug in the PDO driver. When the SQLFetchScroll() returns SQL_NO_DATA (i.e. pointer before the first or after the last result), it will throw this error. I've seen code wher…
Comment by
WanWizard
July 2012
permalink
Fieldset class and bootstrap twitter
You can't set attributes on label. From the fieldset point of view, the field label is an attribute of the field, not the HTML tag with the same name.
Comment by
WanWizard
May 2012
permalink
Get the upload Config
When you do issue that command? If the config file hasn't been loaded, you would get NULL returned. The config file is loaded automatically when you use the Upload class. If you want to access it before, load the config using Config::load(…
Comment by
WanWizard
July 2012
permalink
Setting the body on a Request object
Ah, ok. You want to simulate an ajax post with a json payload? That isn't supported yet. If you need this, please create a feature request on http://github.com/fuel/core/issues so it can be picked up.
Comment by
WanWizard
July 2012
permalink
Possible find_by_* bug?
Activate the profiler, and see which query has been generated for this find().
Comment by
WanWizard
July 2012
permalink
Adding additional info onto a many_many relation table
The ORM doesn't support extra columns in the relationship or through table. You can work around that by defining a model for the relationship table, and define the relationship as: modelB -> has_one has_many model_through -> has_many …
Comment by
WanWizard
July 2012
permalink
Adding additional info onto a many_many relation table
* moved the question to the ORM forum *
Comment by
WanWizard
July 2012
permalink
Setting the body on a Request object
Any request needs to return a Response object, this is true for both interactive use (your actions), REST calls or HMVC calls. This can be as simple as return \Response::forge(json_encode($array)); If your controller extends Controller_REST, thi…
Comment by
WanWizard
July 2012
permalink
v2 release date?
That is correct, and we'll have to work very hard to make that deadline. The Kernel and Core of 2.0 are finished, but none of the support classes have been ported yet. There's still quite a lot on the roadmap.
Comment by
WanWizard
July 2012
permalink
Better way to do it?
Arr::insert_before_key() would take care of that. If you don't know the first key, you can call Arr::insert() or Arr::insert_assoc(), which take a numeric position, where 0 is the first entry in the array. Note that you have to be on 1.3 for t…
Comment by
WanWizard
July 2012
permalink
Fuel 2.0
I personally don't like Doctrine at all (and that's an understatement), so perhaps I'm the wrong person to ask. But in terms of continuity, unless some other developer comes forth to take over development of our ORM, it's future…
Comment by
WanWizard
June 2012
permalink
Global template replace by other
Problem here is that $this->template is processed in the parent::before(), so if your before() need logic that alters the template, do that BEFORE you call parent::before().
Comment by
WanWizard
May 2012
permalink
Validation with Model_Crud
Hmmm. Which version of FuelPHP are you on? I've just copied your code into a test installation of 1.3/develop (should be equal to 1.2.1/release), and it works without problems. echo $drivingSchool->validation()->show_errors(); gives…
Comment by
WanWizard
July 2012
permalink
Filtering MySQL data by each user in a group?
A lot of questions in one post. To start with the last one, for Auth against AD you could look at https://github.com/axelitus/fuel-pkg-ldap, it includes both an ldap class and an Auth_Login_Driver. To get the group assigned to the logged-in user, y…
Comment by
WanWizard
July 2012
permalink
Validation with Model_Crud
What does the validation() method do? Can you post some code on http://scrp.at ?
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Difficult question. I'd say (but that is personal opinion) that FuelPHP is not targeting the absolute beginner, but developers with some knowledge of PHP and OOP concepts and design patterns should be able to use it without problems. And any s…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Muzikman wrote on Monday 16th of July 2012: I've read about DI but not in great depth. Is it a technique to instantiate all of the object dependencies needed for a particular situation? Not necessarily instantiate, a DiC is basically a con…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Muzikman wrote on Monday 16th of July 2012: Just an idea. I've been reading over the documentation for Fuel very thoroughly. I've caught many grammatical errors. Would you like me to grab this branch from GIT and make some changes? …
Comment by
WanWizard
July 2012
permalink
Fuel ORM and InnoDB Cascade Delete One-To-One
An ORM is a very complex beast. And our ORM is in functionality very simple compared to some others out there, which are more mature and often have an entire development team behind them. We can never compete with that, which is one of the reasons …
Comment by
WanWizard
July 2012
permalink
Fuel ORM and InnoDB Cascade Delete One-To-One
You are entitled to your opinion, and in this case I tend to agree with you. However, we are a minority, and there are lots of RDBMS's out there that don't even support any means of enforing referential integrity. The issue with the prima…
Comment by
WanWizard
July 2012
permalink
Module and config
When you load a config file (using \Config::load()), it will load all files it can find, and merge them (either in merge or in overwrite mode depending on the parameter). It will search (and load) in this order: - COREPATH - PACKAGEPATH (all load…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
If it has to be framework agnostic I would suggest making it PSR-0/PSR-1 compliant, and don't create any dependencies to the framework other then through a driver class/DiC (so you can abstract the framework specifics).
Comment by
WanWizard
July 2012
permalink
'use Orm\Model' vs FuelPHP Docs mismatch
There is no recommendation, it's a matter of personal preference. We are moving toward using 'use' for 2.0, but as with a lot of things FuelPHP, there is more then one way to skin a cat. Not all possible solutions are documented.
Comment by
WanWizard
July 2012
permalink
issue deploying on pagodabox due to mkdir for logs
This site runs on Pagodabox, but isn't written in FuelPHP, it's a CMS. This is the boxfile used: https://github.com/fuel/fuelphp.com/blob/master/Boxfile
Comment by
WanWizard
July 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,374
Last Active
4:10AM
Roles
Administrator