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
Harro, question on the ORM nestedset using for a Menu
A simple version of this mechanism (and our first attempt to convert this script into something jQuery) is implemented in the page edit section of Depot, using unordered lists instead of a table.
Comment by
WanWizard
September 2013
permalink
Harro, question on the ORM nestedset using for a Menu
Ah. Using your example, when you pickup SUB6 and move it up, a blank "placeholder" row is inserted on which you can drop it. If you move it, the placeholder moves with you. Say you drop it on the placeholder between SUB2 and SUB3, it will…
Comment by
WanWizard
September 2013
permalink
Count related
try: $count = Model_User::count(array('where' => array(array('concours_id', '=', $concours->id)))); If you try to access the data via it's parent, a lazy load query will start, so you're basically selec…
Comment by
WanWizard
September 2013
permalink
Oil enum error - enhancement maybe
Ah, there's a regex before that. I don't think it should be a problem to expand that. Could you create an issue for this at https://github.com/fuel/oil/issues ?
Comment by
WanWizard
September 2013
permalink
Harro, question on the ORM nestedset using for a Menu
We already had custom JS for it (from when we used CI as backend and used Datamappers nestedsets ;)). We display the tree in a table, the JS code can drag-and-drop table rows, and when one is dropped, it will do an ajax call with the id of the row …
Comment by
WanWizard
September 2013
permalink
Oil enum error - enhancement maybe
I think the problem with the minus sign isn't oil, but the fact that your shell sees it as a command delimiter. The code does this, it really splits on the comma only: if ($type === 'enum') { $values = explode(',', $op…
Comment by
WanWizard
September 2013
permalink
Running oil with crontab "Could not open input file: oil" error
You have to prefix oil with the path, or make sure your command changes the current directory.
Comment by
WanWizard
September 2013
permalink
Forum application / package ?
I am not aware of a forum module/package for FuelPHP. It's been on our todo list for a very long time, but having the experience of building one for our old CMS platform, and the complexities that come with it, we keep on postponing it. This…
Comment by
WanWizard
September 2013
permalink
Multiple groups for an user with SimpleAuth
To be a Hunter is a role, not a group. Groups are arbitairy collections of accounts, such as users, guests, etc. A role is a function you perform (within the context of the application) for which you as a use get assigned the permission associated…
Comment by
WanWizard
September 2013
permalink
Multiple groups for an user with SimpleAuth
No. Both Simpleauth and Ormauth only support a single group. But are designed to use roles to assign permissions. In case of Simpleauth, thats it, in case of Ormauth you can also assign permissions to a user directly, or to a group. This looks lik…
Comment by
WanWizard
September 2013
permalink
Custom 500 error page with templates and themes?
What is "the default one"? The "500.php" view file? Your code looks ok, and I'm sure nothing in the framework catches this Exception. The default view is rendered when it isn't caught, in which case the exception handl…
Comment by
WanWizard
September 2013
permalink
Question on Oil field types
You can not, it's not implemented.
Comment by
WanWizard
September 2013
permalink
How to reuse template asset in non template controller
No experience with Bootstrap, but if your parent page has all the css and js loaded, fetching the html for a modal, creating the div and have it popup should not be a problem.
Comment by
WanWizard
September 2013
permalink
How to reuse template asset in non template controller
Where and how do you call this controller method? Using an ajax call?
Comment by
WanWizard
September 2013
permalink
Job Queue
Because the author never asked. If it gets forked, someone has to maintain it.
Comment by
WanWizard
September 2013
permalink
Unknown column "id" in count process
It doesn't have to be 'id', but indeed every Model must have a primary key, and by default that is 'id'.
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
edit: already found it! The logger() function which provides a shortcut to the Log class methods does ! class_exists('Log') and \Package::load('log'); to avoid errors when people forget to always load it. In case of your task…
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
Indeed. If you want to know, add a Debug::backtrace() to the Log package's bootstrap file, so you can see where it's loaded from, and what initiated the load. Perhaps that will clear things up.
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
Big question was: did it? Or did it just fail silently and not log anything?
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
That explains why your frontend works, and your backend doesn't. They run of different configs, you need to include 'log' in the packages array there too...
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
Something most load it, because in 1.5 the core doesn't have a Log class anymore. So if the package isn't loaded booting the framework should already give you a "class not found". Or did you upgrade from a previous version by si…
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
If you're on 1.5, your always_load section MUST load the log package. If not the app itself will not work either. This complexity has made us decide to drop the package again in 1.6.
Comment by
WanWizard
September 2013
permalink
Regenerate Session ID
If your cookie is called "fuelcid", you're using cookies to store session data. In that case the contents of the cookie is not the session id, but the complete session payload, which is encrypted. So quite logical it changes on ever…
Comment by
WanWizard
September 2013
permalink
Requested URL not Found
It sounds like your .htaccess in the public folder isn't picked up. Is processing it disabled in your webserver config? If so you might need an AllowOverride statement in your virtualhost to have it read. Most default configs have a "All…
Comment by
WanWizard
September 2013
permalink
Using Log class from tasks
Which Fuel version? If 1.5, you need to have the Log package, and have the package loaded. If any other version, Log is a core class and should always be present. Oil itself uses it too, so it should be present and loaded. Did you forget the \ to …
Comment by
WanWizard
September 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,389
Last Active
3:36PM
Roles
Administrator