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
Auth user keeps being logged out automatically
That's an exception in the exception handler. PHP loves this cryptic message. Cause is (most likely) either that you haven't installed the new Log package, that the Log package isn't configured tp always_load in your config (as menti…
Comment by
WanWizard
January 2013
permalink
A couple of suggestions/observations/bugs
Absolutely right. Now let's find someone to make them... :)
Comment by
WanWizard
January 2013
permalink
SetEnv not working
Fuel uses $_SERVER['FUEL_ENV'] which is used in app/bootstrap.php to get the environment. So I think AppFog does something special, so that $_SERVER isn't populated correctly. Best option is to just change the app bootstrap
Comment by
WanWizard
January 2013
permalink
ORM - select one field only
Cool. Thanks for the feedback.
Comment by
WanWizard
January 2013
permalink
ORM - select one field only
Are you sure your Orm package it up to date too?
Comment by
WanWizard
January 2013
permalink
ORM - select one field only
I just copied this model into a fresh 1.5 installation, and added \Package::load('orm'); var_dump((string) Model_Product::query()->select('idProduct')->where('idCustomColor', 'IN', array(1,2,3))->get_…
Comment by
WanWizard
January 2013
permalink
ORM - select one field only
What Fuel version are you on? Just tried this in a 1.6/develop install (which is the same code as the 1.5.1. release), and I don't see the PK being inserted.
Comment by
WanWizard
January 2013
permalink
Setting up FuelPHP with Oracle
Let us know how you get on, and if Oracle needs specific treatment. For 2.0, we're going to replace the current DB layer with a new one that will be platform aware, so instead of a generic PDO driver you will have a PostgreSQL driver and an Or…
Comment by
WanWizard
January 2013
permalink
passing "Value objects" between actions and views
These things are basically Containers. The framework itself uses them as well, and will use them more and more. Like for example in the upcoming 1.6 the new File class used by the Upload package. v2.0 will have a generic DataContainer class that yo…
Comment by
WanWizard
January 2013
permalink
Controller Router problems with log package
p.s. you can also get this message if there is no write access to the log files, but as this is a migration from a previous version, that is unlikely.
Comment by
WanWizard
January 2013
permalink
Controller Router problems with log package
For 1.5 and 1.5.1, the Log package needs to be installed AND loaded. If you migrate from a previous version, you have to add the Log package to your always_load manually, as the core needs the Log class to work. We've in the meantime have a b…
Comment by
WanWizard
January 2013
permalink
Setting up FuelPHP with Oracle
The PDO driver is basically standard PDO. Afaik that works with the correct Oracle drivers, so I don't think Fuel would have a problem with it. The DSN in the config is the standard PDO DSN. There are some bits added so that it tries to return…
Comment by
WanWizard
January 2013
permalink
pagination routes problem 1.5.1 Bug/Error
Shouldn't this pagination_url' => \Uri::create('yorumlarim/sayfa'), //Uri::base(false).'yorumlarim', be pagination_url' => \Uri::create('messages/yorumlarim/sayfa'), //Uri::base(false).'yor…
Comment by
WanWizard
January 2013
permalink
A couple of suggestions/observations/bugs
That's a very long post, I will try to give you some feedback on these points. Upload: 1.6 will have a completely rewritten Upload class, which will use a file object for each file uploaded, which you can access individually or as a group, dep…
Comment by
WanWizard
January 2013
permalink
Auth user keeps being logged out automatically
If you're on 1.2, I can't help you any further. That code is old and no longer supported. It could well be that there was a bug that was solved in later versions.
Comment by
WanWizard
January 2013
permalink
Fatal error: Invalid opcode 153/1/8.
That looks like you're using an opcode cache (APC, eAccellerator, etc) that is not compatible with the version of PHP you are running. But probably eAccelleator, which is hopelessly out of date.
Comment by
WanWizard
January 2013
permalink
Multi-Step Forms
I use different methods for the steps, so /controller/step1, /controller/step2, etc. It will avoid the tangled mess of code in your method, due to different bits of logic you need to prep and validate a form. I also do the validation of the post …
Comment by
WanWizard
January 2013
permalink
Auth user keeps being logged out automatically
If there's no timezone difference, that is not a problem. Issue with times and timezones (on both client and server) is that a cookie expiration timestamp is in GMT, so the server will have to convert local time to GMT, and your PC will have …
Comment by
WanWizard
January 2013
permalink
ManyToMany relation - question with save/update
The model keeps track of the related objects, and logs any disconnects through the __unset() magic method. When you just assign a new value, it will not call this method, so it doesn't know you want to delete those relations.
Comment by
WanWizard
January 2013
permalink
Can I call a Task within a controller?
You have to load the class manually. They don't use the cascading filesystem, so the autoloader can't load them.
Comment by
WanWizard
January 2013
permalink
Strip extension
No, it is a global setting.
Comment by
WanWizard
January 2013
permalink
pagination routes problem 1.5.1 Bug/Error
So 'http://localhost/yrm/2' is matched by the 'yrm/(:any)' => 'yrm/other/$1', line. I wouldn't know why it would not route to that. You have a controller called "Controller_Yrm", and it has a method c…
Comment by
WanWizard
January 2013
permalink
How to setup Tasks in a Cron Job
I have in my cron (/etc/cron.d/mytask): * 1 * * * root cd /path/to/my/fuel/install; env FUEL_ENV=production php oil refine mytask >> /data/logs/mytask.log 2>&1 ( check your cron install if you need to specify the userid )
Comment by
WanWizard
January 2013
permalink
ManyToMany relation - question with save/update
Can you create an issue for this on http://github.com/fuel/orm/issues, with a short description, and a link to this page? Then someone can have a look at it.
Comment by
WanWizard
January 2013
permalink
pagination routes problem 1.5.1 Bug/Error
What does your entire routes.php look like?
Comment by
WanWizard
January 2013
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,399
Last Active
7:26AM
Roles
Administrator