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
Exception trace in error page
The views are in core/views/errors, you can copy them to app/views/errors and modify them. You probably have to extend the Error class as well, as you need to alter the way the exception is processed.
Comment by
WanWizard
September 2012
permalink
About the redis class in the future 1.3 release
We haven't written it, it's a copy of https://github.com/jdp/redisent, adapted to work with FuelPHP. I did the latest merge, so it could be that I've misinterpreted the new way of working, I don't use redis myself.
Comment by
WanWizard
September 2012
permalink
\Orm\Query::group_by() ?
This question has been asked and answered a few days ago. The ORM is not a query builder. If you use a group_by(), you end up with results that do not map directly to data objects (i.e. table rows). Run a normal DB query for this.
Comment by
WanWizard
September 2012
permalink
Save / Cache image from URL
Fetch the file using file_get_contents() or through Request::forge('your-url', 'curl')->execute();
Comment by
WanWizard
September 2012
permalink
download the docs in pdf
No, there isn't. Currently the docs are made in static HTML, which would make that difficult. The new docs system (which is currently being developed) will use a more book-like structure, and text written in markdown, which would make it a lot…
Comment by
WanWizard
September 2012
permalink
bootstrap CSS and JS changes
There's a bootstrap update planned for 1.4/develop.
Comment by
WanWizard
September 2012
permalink
API url Structure
Like CI FuelPHP also uses URI segments by default, so the url's you want is standard behaviour. If you don't want any routing, I would suggest to make a module for every API version, so your 'v1' becomes the module name, and …
Comment by
WanWizard
September 2012
permalink
About the redis class in the future 1.3 release
We're always looking for improvements, so if you have them, by all means. Fork the repo, makes your changes, and send a pull request.
Comment by
WanWizard
September 2012
permalink
Session Problem
Always a difficult subject, because you're working in a stateless environment, so what is the definition of "online"? I don't think it's a good idea to modify the session behaviour for what. For one project I have extended …
Comment by
WanWizard
September 2012
permalink
Problems with Cascade Delete
Are you sure this is what you want? You're deleting a child, and want to auto-delete it's parent? Normally it's the other way around. The issue here is probably that when you delete the child, the ORM wants to delete the parent (and …
Comment by
WanWizard
September 2012
permalink
Session Problem
Session updates happen in a shutdown event. In case of a new session, this is where the session is created, so you will not have a session_id before. The session_id is an internal variable, so you shouldn't use that anyway, as the way the Sess…
Comment by
WanWizard
September 2012
permalink
What are the different between /View & /Views ?
You're the second one that asks that in two days (see 5 threads down in this forum). View files (which are HTML templates) go in /views. Everything in classes should be a class. In case of classes/view, those are Viewmodel classes.
Comment by
WanWizard
September 2012
permalink
Hello
Where exactly did you create this model? A module is in essence nothing more then a namespace that maps to a location on disk. if you have created this model in /app/classes/model, that this is absolutely correct. If you have created the model in m…
Comment by
WanWizard
September 2012
permalink
How to display a fieldset's children on build()?
** Moved to the General forum, this is not an ORM question. **
Comment by
WanWizard
September 2012
permalink
Using oil and MAMP on OS X Snow Leopard
That is indeed one of the common issues with MAMP.
Comment by
WanWizard
February 2012
permalink
forge problem with email package
Very weird. If you add a debug to _init(), you should see it being called. It's one of the core functionalities of the framework, if that wouldn't work, nothing would. You don't have anything else that might overwrite the config?
Comment by
WanWizard
September 2012
permalink
Change 'key_to' dynamically
That is inconsistent with your earlier message. You don't give the Customer model but if that has the FK for both the shipping and the invoice address, then there's more than one thing wrong. First, if the addresses posted are new, then y…
Comment by
WanWizard
September 2012
permalink
Split MVC - View into class containing logic and raw template
I tend to agree with that. This is why FuelPHP has the Viewmodel (which implements the Presenter pattern), which is exactly designed to contain the pre-processing logic for the view. If you have the Parser package active, the Viewmodel will use it …
Comment by
WanWizard
September 2012
permalink
What is difference between View and ViewModele?
A view is an html template or partial. A Viewmodel is a class for view pre-processing (it implements the Presenter pattern). See the documentation.
Comment by
WanWizard
September 2012
permalink
forge problem with email package
_init() is called when the class is loaded, by the autoloader. See it as a static version of __construct(). So there is no need to call it yourself, it will be called.
Comment by
WanWizard
September 2012
permalink
Desicions about fuelphph versions for new project ?
The kernel is. But to make applications you need a lot of support classes, and the core isn't yet. There is also no documentation as of yet.
Comment by
WanWizard
August 2012
permalink
Change 'key_to' dynamically
You can just define two relationships to the same other model, one using the shipping_address_id' as foreign key, the other using 'the invoice_address_id'. Something like protected static $_belongs_to = array( 'shipping_addr…
Comment by
WanWizard
September 2012
permalink
docs.fuelphp.com offline version
Can't comment on your medical condition, lol... But how about https://github.com/fuel/docs/downloads, and click on "download as zip"? If you use the official release zip files, the docs folder is included in the zip.
Comment by
WanWizard
August 2012
permalink
I want to use fuel php
Can you be a bit more specific? You're confused about installing it? About how it works?
Comment by
WanWizard
September 2012
permalink
(Yet Another) Oil on Windows problem
The file is there (if it's installed properly), or it isn't. There isn't much more too it. PHP says it isn't, so if you say it is you have a curious issue on your hand. The file is part of the fuel repo, which is the one you clo…
Comment by
WanWizard
September 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,373
Last Active
5:48AM
Roles
Administrator