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
Pass the result to the view
Plain DB queries return database objects (for example of type MySQLi_Result), which are PHP internal objects that are immutable. All data passed to a view is by default encoded by FuelPHP as a security measure. Encoding means changing, which you ca…
Comment by
WanWizard
November 2012
permalink
Problem with Config::get('language') in Fuel 1.4/master
Did some debugging. This is caused by the fact that a request now stores and resets the language. Problem is that views are by default late-rendered, only after the request has been completed. At that time, the Config (which is global) no longer re…
Comment by
WanWizard
November 2012
permalink
Change created_at field datatype to datetime
I don't think it's configurable. I would strongly advice against using the datetime datatype, it's a nightmare to work with.
Comment by
WanWizard
November 2012
permalink
dateclosed
updated_at should not be there too. I've updated the docs repository, the change should be online tomorrow.
Comment by
WanWizard
November 2012
permalink
dateclosed
That looks like something that shouldn't be there at all. Same for the user_id field. I'll correct that.
Comment by
WanWizard
November 2012
permalink
v1.4 can no longer extend and replace Database_PDO_Connection
I don't have any issues with database connections here whatsoever. When did you install 1.4? And what is in your app/config/db.php? If it's empty, check core/config/db.php, the initial master repo had a bug in which the example mysql conf…
Comment by
WanWizard
November 2012
permalink
v1.4 can no longer extend and replace Database_PDO_Connection
Nothing has changed in that area between 1.3 and 1.4. You don't have a database call somewhere before you package is loaded? Because that would cause the core alias to already be in place.
Comment by
WanWizard
November 2012
permalink
Browscap is closed.
1.4 has an alternative implemented, so if you use that, it should work ok again.
Comment by
WanWizard
November 2012
permalink
Fieldset Class (Use DIV's instead of Table's)
From your validation point of view there is no difference, it's still the fieldset.
Comment by
WanWizard
November 2012
permalink
Using Redis subscribe method
My Redis knowledge isn't at that level, I don't know what that mechanism exactly works. But if that requires the connection to stay open between requests, that you'll have a challenge in the PHP world...
Comment by
WanWizard
November 2012
permalink
Using Redis subscribe method
The Redis class passes every command as-is through to Redis, so I don't see an immediate reason why that shouldn't work.
Comment by
WanWizard
November 2012
permalink
Fieldset Class (Use DIV's instead of Table's)
In your code you do $form->build(), which generates the entire form. If you want more granular control, pass $form on to your view. In your view, create the HTML markup for your form manually. Then, insert the individial fields, like so: echo Fo…
Comment by
WanWizard
November 2012
permalink
Upload Multiple Files
Assuming you have multiple files uploaded, you will have an entry in $value for each of the files. Which also means you probably need a way to store multiple file names in your article. I can't see what $article is so I can't be more spec…
Comment by
WanWizard
November 2012
permalink
Fieldset Class (Use DIV's instead of Table's)
Don't hesitate to ask, we're here to help if you get stuck. If you use build() on individual fieldset fields, the form_method and form_template fields in the template are not used, the others you can strip or change as much as you want to…
Comment by
WanWizard
November 2012
permalink
Upload Multiple Files
As you noticed, $value is an array, it has an entry for each file uploaded (that is saved succesfully). Just loop over it.
Comment by
WanWizard
November 2012
permalink
Fieldset Class (Use DIV's instead of Table's)
If that's what you want, that's what you should ask. I can't see what it is you want to achieve. You don't have to generate the entire form at once, as you have discovered that there are limits to what you can do with a form-wid…
Comment by
WanWizard
November 2012
permalink
request class and cache
Uri::current() is a method in a Framework class, it requires the framework to be operational. I don't know what is in that index.php, so I can't tell you why it doesn't work.
Comment by
WanWizard
November 2012
permalink
Upload File Script
That's what I wrote: "If you're on Windows, you must install the dll manually.". This requirement is also documented: http://fuelphp.com/docs/requirements.html
Comment by
WanWizard
November 2012
permalink
Upload File Script
Your installation doesn't have the fopen extension installed. It must be part of the installation per default in PHP 5.3+. If you're on Windows, you must install the dll manually. If you're on your own machine, install it. If you use…
Comment by
WanWizard
November 2012
permalink
Noob question: getting results from DB::query as object
Nobody is stopping you from using $result = DB::query('put your very complicated SQL as-is in here')->as_object()->execute(); and enjoy all (other) benefits of using the query builder.
Comment by
WanWizard
November 2012
permalink
oil migrate problem Error - SQLSTATE[42S21]: Column already exists:
These two migration files add the same column ('slug'), so it's logical you get this database error? Both don't match the oil command you gave earlier btw...
Comment by
WanWizard
November 2012
permalink
v1.3 question about output of field from database
Security is a key component of the framework. One of the security features is that by default ALL data send to a view is encoded, to make sure any injected HTML is rendered harmless. This off course is not so pleasant if that is your intention. Yo…
Comment by
WanWizard
November 2012
permalink
oil migrate problem Error - SQLSTATE[42S21]: Column already exists:
Have a look at the migration file generated, what does it contain?
Comment by
WanWizard
November 2012
permalink
New functionality
There's a new Query Builder in the making, which will also introduce proper MongoDB support. We're waiting for that to be completed to add more MongoDB to the core.
Comment by
WanWizard
November 2012
permalink
Fieldset Class (Use DIV's instead of Table's)
The default template used is in config/form.php. If your app doesn't have this, the one in core/config is used. Copy it from core/config to app/config, and modify it to your liking.
Comment by
WanWizard
November 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,396
Last Active
5:49PM
Roles
Administrator