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
FuelPHProfiler
True. Maybe make that configurable?
Comment by
WanWizard
January 2012
permalink
FuelPHProfiler
We'll have to see if that solves the issues. Point is to get the profilers HTML out of the DOM of the page. I kinda like that second window. It has a fixed name, so it will be re-used on every page load. I just have it open side by side with t…
Comment by
WanWizard
January 2012
permalink
scaffold admin without simpleauth?
Depends on what you call easy. If your current app installation is a git repo, you can just delete the core and all package folders, and then use "git submodule add " to add the core and package repo's to yours. After you have done …
Comment by
WanWizard
February 2012
permalink
Using Oil to create more complex tables
oil can generate models for both Model_Crud and ORM. I thought ORM was the default, but if not, you can add '--orm' on the commandline to tell oil to generate an ORM model.
Comment by
WanWizard
February 2012
permalink
FuelPHProfiler
I was thinking along the lines of the Smarty debugger, that opens a second window to show all information. I would very much prefer that, as it doesn't play havoc with your page layout. I've already had several issues with the current way…
Comment by
WanWizard
January 2012
permalink
many to many create question
The name of the relation will become an array in the model instance. So for Model_Character, the instance will have an array called 'cloth' (assuming you haven't named the relation differently). For Model_Cloth, it will have an array…
Comment by
WanWizard
March 2012
permalink
scaffold admin without simpleauth?
No, 1.1/develop of a package will require 1.1/develop in the core (and your app too). You can't just upgrade a single package. Having said that, 1.1/develop is very stable at the moment, much more than the 1.1 release, as we've spend most…
Comment by
WanWizard
February 2012
permalink
Have you considered installing a proper forum for FuelPHP community?
Working on it. As soon as the authentication part of the new "Fuel Depot" site is ready, I'll start on the integration of a new forum. And trying to figure out how to migrate stuff...
Comment by
WanWizard
March 2012
permalink
image upload and rescale problem
Have you send a pull request to fix this issue? And if not, why not? Alternatively, create an issue describing the problem and your fix, so someone else can pick it up and the community can benefit from our work.
Comment by
WanWizard
March 2012
permalink
DOCROOT differs between oil tasks and regular classes
The oil loader, like your index.php, is part of the app package. In general you will never update that as a package, as it contains your application code. If you have to upgrade it, you'll have to go through all files anyway. Currently, you ha…
Comment by
WanWizard
March 2012
permalink
scaffold admin without simpleauth?
I went through the code, and in most places the templates are loaded using View::forge(), which will search your app's views folder. But some were loaded using file_get_contents(), and loaded them hardcoded from PKGPATH. I've just fixed t…
Comment by
WanWizard
February 2012
permalink
DOCROOT differs between oil tasks and regular classes
We had an internal discussion about it, and the default stays as it is. If you don't like the default, open 'oil' in your favorite editor, and edit the definition. That's what they are there for.
Comment by
WanWizard
March 2012
permalink
Hmvc module override question;
As I said, you can't. A module is a self-contained group of files, call it a sub-application if you will. It is not a file-system overlay that you can use to replace specific files elsewhere. You could do this (but then only for classes, still…
Comment by
WanWizard
March 2012
permalink
A document model
This functionality is exactly what the Asset class is for, and it works fine. I don't see a reason for duplicating it. Perhaps you can explain what you wanted to do, and didn't work? I have a feeling that you've been caught by the la…
Comment by
WanWizard
March 2012
permalink
Hmvc module override question;
You can not override on a file by file basis. If you have multiple module folders, and two of them contain a module with the same name, only the first is used. This is how it works. You can't get it to work either, you will have a namespace co…
Comment by
WanWizard
March 2012
permalink
DOCROOT differs between oil tasks and regular classes
By default, DOCROOT is defined as the location where the 'startup script' is, which indeed can be different for oil and your applications index.php. Like with all other constants that are defined, they just contain a default. If they don&…
Comment by
WanWizard
March 2012
permalink
Trouble using two auth driver on the same site
Sounds like your modifications were to small. Make sure the drivers use unique session data, so that a login for one driver isn't detected as a login for the other.
Comment by
WanWizard
March 2012
permalink
Oil Generate Admin error - [...] already exists
You're not doing anything wrong, models go in classes/model, and names must be unique (obviously). So if your admin posts model is the same are the model you generated for the crud controller (which it should be) you can add the -f switch and …
Comment by
WanWizard
February 2012
permalink
Hmvc module override question;
Can you give an example, because I don't understand what you mean. What is "a file"? You want to override what?
Comment by
WanWizard
March 2012
permalink
Module config usage
The finder works with a "request context". This is determined by the Request. The fact that you tell FuelPHP that you have a module somewhere doesn't change the context. So if you're controller that wants to load this config fil…
Comment by
WanWizard
March 2012
permalink
Controller_Template + Module
The finder works with a "request context", it knows what was requested, and searches based on that, and not on which piece of code you're in. So if you call this module controller via the URL (/common/common/index) or via a Request::…
Comment by
WanWizard
March 2012
permalink
Problem with new New Api Documentation
It loads stuff from Google, I've noticed that sometimes that is quite slow. Perhaps you've missed one of the jQuery files? If you force a reload, is it still a problem? Or was it a one-off?
Comment by
WanWizard
February 2012
permalink
Example of a model using Model_Crud
The quickest way to get something is to generate it using oil. The process is documented here: http://docs.fuelphp.com/packages/oil/generate.html. Oil can also generate an admin section for you, so you'll have a complete crud environment on th…
Comment by
WanWizard
February 2012
permalink
302 redirect loop between /admin and /admin/login
Try pinging @philsturgeon, our resident Pagodabox guru.
Comment by
WanWizard
February 2012
permalink
Oil console - PHP Fatal error: Class 'Auth' not found
Did you load the 'Auth' package in your app/config/config.php?
Comment by
WanWizard
February 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
1:59AM
Roles
Administrator