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
Image crop error
Your cropped image has zero height. You need to pass top-left/bottom-right coordinates, but you pass $y1 twice, creating a height for the cropped result of zero.
Comment by
WanWizard
August 2014
permalink
Auth change password
That is indeed what is documented: http://docs.fuelphp.com/packages/auth/simpleauth/usage.html#/method_change_password
Comment by
WanWizard
August 2014
permalink
Routeing problem
Fuel doesn't support GET variables in routes. That would work if it would do a secondairy HTTP request with the route result, but it doesn't, route results are resolved internally. Also, you have to be careful with using capitals in your …
Comment by
WanWizard
August 2014
permalink
Controller_REST returns Recoverable Error when CSV
Not enough information I'm afraid, I don't know what you pass to it. From the looks of it you try to return an object or objects, and not an array, which is the required return type for Controller_Rest.
Comment by
WanWizard
August 2014
permalink
Auth change password
I can't immediately see how that would happen. Could you create an issue for this at https://github.com/fuel/auth/issues ?
Comment by
WanWizard
August 2014
permalink
Nested Set Tree as HTML List
You need to use recursion to do this properly. Start by passing the tree root to the method. In the method, open the UL, fetch all children, and for every child, create an LI. If the child is not a leaf node, don't close with /LI, but recurse …
Comment by
WanWizard
August 2014
permalink
Using module but render in my template app
I don't think Depot uses cross-module calls at all. It uses a base controller that sets up the page template, and adds the 'content' second from the module controller itself. It utilizes the fact that there's a fallback to app…
Comment by
WanWizard
August 2014
permalink
Using module but render in my template app
I understand this bit of code, but don't understand the relation with a module. You want to replace the View::forge() call with a view from a module? That is very bad practice, the only clean why to do that is to use an HMVC request to a modu…
Comment by
WanWizard
August 2014
permalink
Auth change password
What type of Auth? Which Fuel version?
Comment by
WanWizard
August 2014
permalink
Using module but render in my template app
You have to be more specific, what exactly are you trying to do? Modules are designed to split your app in self contained functional parts. A request for such are part is then routed to a module controller, and that can access files in a module. I…
Comment by
WanWizard
August 2014
permalink
Need Help : ORM Error Deleting - Primary key on model Model_Test cannot be changed.
Just remember that "belongs_to" is always defined on the model that has the FK, and you're good to go.
Comment by
WanWizard
August 2014
permalink
[2002] 'Connection Timed Out' when trying to view page
Ah, ok, the other way around. And you're sure your config is identical to the one used by oil (or do you run your website in "development environment")? Where is your database server running? On your local machine, on the LAN, or on …
Comment by
WanWizard
August 2014
permalink
Need Help : ORM Error Deleting - Primary key on model Model_Test cannot be changed.
As far as I know that has never changed. You need to define your relations both ways, so you need (in this case) a has_one and a belongs_to. The model that contains the foreign key MUST have the belongs to. If you look at your has_one definition, …
Comment by
WanWizard
August 2014
permalink
[2002] 'Connection Timed Out' when trying to view page
Nope, and I've never seen it before either. You get this when running oil, but not when running the app? That suggests that it's a php-cli configuration issue of some sort. What happens if you try to access your database from the consol…
Comment by
WanWizard
July 2014
permalink
use themes. How?
set_template() sets the page template. This is your basic view, containing the html head, the main page structure, and the locations for all partials. view() just loads a view, similar to View::forge(), but one that takes the theme paths into accou…
Comment by
WanWizard
July 2014
permalink
how to get a detail value from a find return ?
From the looks of it, images is a one-to-many relation, so you have to loop. foreach($items['images'] as $pk => $image) { echo $image['file_name']; }
Comment by
WanWizard
July 2014
permalink
crypt encode / decode problem
Saw it. It's not a bug in Fuel (nothing in Crypt has changed), but it seems like the new PHP5 dev-train of PHPSecLib is one big "clusterfuck". :-(
Comment by
WanWizard
July 2014
permalink
Problems with server deployment
I only see a login page, no profiler, no errors.
Comment by
WanWizard
July 2014
permalink
Problems with server deployment
http://ucbeniki.digied.si/index.php/login works, so that means your rewriting isn't operational. If it is an apache install, and you use the supplied .htaccess, make sure the apache config allows the .htaccess to be used (needs an AllowOverri…
Comment by
WanWizard
July 2014
permalink
use themes. How?
The Asset extension of Theme is briefly mentioned here: http://docs.fuelphp.com/classes/theme/advanced.html. For twig you can use the Parser package, which extends the View class to provide support for template engines, including Twig. It already c…
Comment by
WanWizard
July 2014
permalink
Observers
I don't understand the question. If you delete a record, it's gone, so why add a deleted_at column?
Comment by
WanWizard
July 2014
permalink
ORM - Multiple model in one relationship
Yes, correct.
Comment by
WanWizard
July 2014
permalink
ORM - Multiple model in one relationship
If you can have multiple Model_Element_HTML per Model_Element, then it is a one-to-many relation, and the foreign key (the PK of Model_Element) should be in Model_Element_HTML. Which gives you: Model_Element has_many Model_Element_HTML Model_Eleme…
Comment by
WanWizard
July 2014
permalink
Erro PDO
And still we don't know what it was or what you did... ;-) Can you tell us, for future readers that also have this problem, what exactly you have done to fix it?
Comment by
WanWizard
July 2014
permalink
use themes. How?
When Theme can't find a View file, it reverts back to looking for a standard view file. If that can't be found either, it fails. That is why you get the exception about APPPATH./views... When you use Theme, you can't use Asset like t…
Comment by
WanWizard
July 2014
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,394
Last Active
6:13AM
Roles
Administrator