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
Validate multiple uploaded files separately
The 'validate' callback will be called after all generic validations have taken place, so you can't use it to alter validatio rules. You have to make sure your generic rules are generic enough so that both files pass validation, then…
Comment by
WanWizard
August 2012
permalink
Oil and Windows!
Ah, misread that. On linux machines, oil is started by a shell script (batch file in windows terms), not by loading the "oil" php file directory. "Create" is a function of that shell script, which uses git to create a new local …
Comment by
WanWizard
August 2012
permalink
Add insert column and value in pre_save for Model_Crud
The issue here is that a call to set() or values() adds a new record, it does not have the functionality to amend the last set of values defined. And there is no method that does. Instead of hacking the core, please create an issue at http://github…
Comment by
WanWizard
August 2012
permalink
Starting new CMS project - use Fuel 2.0?
1.3: soon, just need to find the time for it. 2.0: no.
Comment by
WanWizard
August 2012
permalink
Oil and Windows!
Very good question, I don't see anything wrong. That php.exe is the CLI version? (run it with -v to check).
Comment by
WanWizard
August 2012
permalink
ORM Delete Looking for ID NULL
*** moved to the ORM subforum ***
Comment by
WanWizard
August 2012
permalink
Starting new CMS project - use Fuel 2.0?
It depends. The 2.0 kernel is complete, but the core is far from complete. This means that most of the "support" classes that form the core in 1.x (like session, arr, theme, etc) as still missing. I don't expect a first official rele…
Comment by
WanWizard
August 2012
permalink
why use 'or'
It's our coding standard, see http://docs.fuelphp.com/general/coding_standards.html. We find 'and' and 'or' easier to read, and there is a subtle difference between' ||' and 'or' which will become appear…
Comment by
WanWizard
August 2012
permalink
How to create this structure
the Theme class was introduced in 1.1, and more functionality was added in 1.2. A module can be seen as a reusable application component, a package can be seen as a reusable core/framework component. The first provides frontend functionality, the s…
Comment by
WanWizard
August 2012
permalink
[Extend Core Class] - Problem
You will have to define your class extension in app/classes/bootstrap.php, otherwise the autoloader doesn't know there's an extension. There's an example in the comments (of a View extension) so you can see what the syntax is.
Comment by
WanWizard
August 2012
permalink
Can't get started with MongDB
Please make an issue for this on http://github.com/fuel/core/issues so it can be fixed.
Comment by
WanWizard
August 2012
permalink
Add insert column and value in pre_save for Model_Crud
I don't understand what you're trying to do here. $this->_values should be an assoc array with column->value pairs. So what does $this->_values[0] achieve?
Comment by
WanWizard
August 2012
permalink
How to create this structure
You can not do that in a package, as a package can't have controllers and is not routable. You can do that in a module though, which has it's own namespace, and is specifically designed for the purpose of re-use. For views and assets I wo…
Comment by
WanWizard
August 2012
permalink
What Core classes have you extended? And why?
So far I haven't had the need to extend any core class. I would only do that if it is very application specific, and not solvable without extending. If it's application specific, I put the logic in a separate application class, or if it i…
Comment by
WanWizard
August 2012
permalink
Exception Error show in Production : is it normal ?
I don't think it can be restricted at the moment. Please create an issue for this at http://github.com/fuel/core/issues so someone can have a look...
Comment by
WanWizard
August 2012
permalink
How to use different file types
Asset currently doesn't have support for other subfolders then img, js and css. But this sounds like a useful addition, could you create a ticket for this at http://github.com/fuel/core/issues, with a use-case?
Comment by
WanWizard
August 2012
permalink
Documentation glitch on viewmodel parameter format
Thanks for reporting this, I'll correct it.
Comment by
WanWizard
August 2012
permalink
REST request
There is no reason to use this kind of language here, I've been very friendly so far. If your issue is that someone has forgotten to document a new feature, then be constructive and say so, so the issue can be solved. We're all human, we …
Comment by
WanWizard
August 2012
permalink
REST request
Are you even reading what I wrote? FuelPHP has been supporting REST requests since early v1.1, and I even gave you the syntax for calling a REST api in my previous post. And still you go on about us not supporting REST requests?
Comment by
WanWizard
August 2012
permalink
Can't delete ORM object
If $parent is an ORM model object, I don't see why that shouldn't work. Enable the profiler, enable db profiling, and see what SQL is generated. The DELETE should be there...
Comment by
WanWizard
August 2012
permalink
REST request
Perhaps you should look a bit better? I wrote that on Friday 5th of August 2011, which was just after v1.0 was released. At that time my statement was true...
Comment by
WanWizard
August 2012
permalink
Exception Error show in Production : is it normal ?
No, it isn't. And it doesn't happen here, if I throw an error in action_index() of the Welcome controller, it production mode it will just say "Oops. An unexpected error has occured". So are you sure you're in production mo…
Comment by
WanWizard
August 2012
permalink
REST request
What do you want to simplify? $result = \Request::forge('http://api.example.org/get/some/data', 'curl');
Comment by
WanWizard
August 2012
permalink
Strange error with get_one()
find(1) runs a get_one() too, so I don't think this is the issue. Do you still get the error if you do this instead: $content = Model_Content::find()->where('slug', $slug)->get_one(); $this->template->set('subtitle&…
Comment by
WanWizard
August 2012
permalink
Rendering Methods
As the docs say, the difference is the time of rendering. By default, FuelPHP passes View objects around, and only renders output when it has to, and not sooner. This means no time is waisted on Views that will not be rendered, for example because …
Comment by
WanWizard
August 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,374
Last Active
5:38AM
Roles
Administrator