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
Check if File::download REALLY finished downloading
No, the webserver sends the file out outside of your applications control, with no feedback what the client has done with it. Perhaps you could so something client side using javascript, but that is not related to the framework.
Comment by
WanWizard
July 2013
permalink
Template functions
Use Date::time_ago().
Comment by
WanWizard
July 2013
permalink
Iterate and query, or joins?
If you prefer method chaining, instead of this complex array notation, ORM allows you to do that too: Model_Message::query()->related('comments')->get();
Comment by
WanWizard
July 2013
permalink
Iterate and query, or joins?
As always, it depends. Sometimes a join is faster, sometimes it isn't. Fetching all comments for every message probably warants a join. If Model_Message is an ORM model, just define the relation, and you can fetch them in one go using Model_M…
Comment by
WanWizard
July 2013
permalink
Problem with URL rewrite
To be complete: "All" isn't really needed, the minumum you need is "FileInfo". With "All" you also enable auth overrides and directory indices, which might have security side-effects... The current release has …
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Just to let you know I've got a setup working, and I can recreate your error. I'll try to push a fix for it this weekend.
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
I got that, but I don't understand it. The only difference between a task and a browser request is the request setup, which is done only once, and doesn't really store much data. Other then that, the code executed in both cases is the sa…
Comment by
WanWizard
July 2013
permalink
Problem with upload class
Imagemagick has nothing to do with the Upload class, so that is not (directly) responsible for that error. You haven't made the mistake of having auto_process set to true, AND calling process()? Because you can no longer get away with processi…
Comment by
WanWizard
July 2013
permalink
how to make the admin panel in the module
So you need to add that route to app/config/routes.php, module routes aren't loaded until the module itself is loaded, this limitation is documented.
Comment by
WanWizard
July 2013
permalink
how to make the admin panel in the module
What are you exactly trying to do where? You are adding a module route? Which route, and to which module?
Comment by
WanWizard
July 2013
permalink
Using classes in public folder php files..?
You have a non-Fuel application, and from a php script of that application, you want to call a Fuel class?
Comment by
WanWizard
July 2013
permalink
Search and repale in theme(templase). Own variables
Which "other CMS" is that exactly? Ideally you would want to use the parser package, and write a custom parser for those specific templates. With a bit of luck that's not that difficult.
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
I don't know, I've never used Warden. I use the registration and password recovery methods are shown in the example code, it would not be difficult to add email verification to that, in our application we also do that.
Comment by
WanWizard
July 2013
permalink
Smarty plugin not working in $template?
There were no changes to either the View or the Viewmodel. The parser package was changed to switch from a custom installed Smarty to using the Composer package, perhaps that has caused it?
Comment by
WanWizard
July 2013
permalink
Installing FuelPHP 1.6
What do you mean by "custom URL"? The url to your application depends on your webserver setup, not on Fuel.
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
I'll discuss this with our profiler, and ask him how he traces memory usage. I haven't used xdebug for that purpose in a long time.
Comment by
WanWizard
July 2013
permalink
Polymorphic model
We're looking into implementing it into ORM atm, but haven't found a good solution yet. Issue is that depending on the type you need to relate to another model, you can not achieve that without serious changes to the model code.
Comment by
WanWizard
July 2013
permalink
What's the best way for set DB query builder results to ORM\Model?
If you feed data into a Model object, you're supposed to do the hydration yourself, the ORM model does not contain the logic to disect the result of a join, and automatically create related object, it does not know how to split the records. T…
Comment by
WanWizard
July 2013
permalink
large image-thumbnailing operation fails without error
My motivation is pretty simple: it comes with the job. If you run a project and people start using it, you get to a point where the project becomes so large that those people start depending on it. They become "customers". If you're…
Comment by
WanWizard
July 2013
permalink
Installing FuelPHP 1.6
You can find more info about Composer here: https://getcomposer.org/doc/00-intro.md#using-composer Composer is a package manager, similar to sparks in CodeIgniter, but standardized across frameworks, and with a built-in autoloader, so everything yo…
Comment by
WanWizard
July 2013
permalink
$validation->valid_string()
See http://fuelphp.com/forums/discussion/comment/14510#Comment_14510
Comment by
WanWizard
July 2013
permalink
Theme info file...
The theme info file is loaded from the theme root folder, it's part of the theme.
Comment by
WanWizard
July 2013
permalink
FuelPHP engineer - Hourly Contract Work
Any indication of rate? Does it have to be a freelancer?
Comment by
WanWizard
July 2013
permalink
Can't use normal php classes in oil tasks?
Standard classes live in the global namespace. Since your task is namespaced, you'll have to use \RecursiveDirectoryIterator, prefix it with a backslash to indicate you want to use it from global.
Comment by
WanWizard
July 2013
permalink
how to make the admin panel in the module
Eh, could be that the regex for :any is eager, so the segment is replicated. Use 'admin/(:segment)/(:any)' => '$1/admin/$2', instead.
Comment by
WanWizard
July 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,398
Last Active
8:00AM
Roles
Administrator