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
One class instance in every hmvc request.
Is it empty, or do you get an error? A class exists within the PHP runtime environment, and static classes really only exists once. But pay attention to the namespace, if your class is defined in app/classes, use \Reports::add() to call it, especia…
Comment by
WanWizard
November 2011
permalink
controller inside a controller
You don't instantiate a controller yourself. The controller is part of the MVC framework, in that sense it is a special type of class. The same is true for the naming convention, this is how the framework works. If you need a "normal"…
Comment by
WanWizard
November 2011
permalink
How do I set a model observer from outside of the model
Please add a feature request for this at http://github.com/fuel/orm/issues.
Comment by
WanWizard
November 2011
permalink
Model_Crud v ORM
Model_Crud only does very simple operations on the models table. It is therefore limited in functionality (for example, no relation support), but slightly faster then ORM since it doesn't have to deal with model objects. For oil generation, yo…
Comment by
WanWizard
November 2011
permalink
Events in modules
In FuelPHP 2.0 modules and packages will be merged into one, and will have their own bootstrap. It will still mean you will have to load all of them, otherwise the bootstrap will not be loaded. In the meantime, I suggest you add a specific class t…
Comment by
WanWizard
November 2011
permalink
controller inside a controller
What is your definition of "a normal instance of a controller"? I haven't got a clue what your issue is, so maybe you could explain yourself better? The IRC channel is on freenode, called #fuelphp.
Comment by
WanWizard
November 2011
permalink
Events in modules
You can't. There is no mechanism that magically scans your modules and calls 'something'. You will have to do the calling yourself.
Comment by
WanWizard
November 2011
permalink
One class instance in every hmvc request.
All the methods in your class are defined as static, so there is no concept of an instance. Class::method is exactly the same, it doesn't matter from where you call it. So your issue must be elsewhere, but without more explanation on how you …
Comment by
WanWizard
November 2011
permalink
loop sql query?
If you code database queries by hand, a join is the obvious answer. If you use the ORM, use relations to fetch related information.
Comment by
WanWizard
November 2011
permalink
error at mysql_connect()....
Chances are you have an environment issue, so either the wrong section is loaded, or you have configured the wrong session. Or you have made a mistake in your configuration. What environment are you using (by default, that is Fuel::DEVELOPMENT)? A…
Comment by
WanWizard
November 2011
permalink
Log error
Please add a feature request for this: http://github.com/fuel/core/issues.
Comment by
WanWizard
November 2011
permalink
Use FuelPHP's Email class with Google Apps or Gmail SMTP
The old Email class was derived from CI. The current email package is written from scratch.
Comment by
WanWizard
November 2011
permalink
Assets in Modules
Don't think there is a preference. I checked my app again, and I use 'modules' in both places (so the missing s was a typo).
Comment by
WanWizard
September 2011
permalink
How do I set a model observer from outside of the model
An observer is anything that is callable, to it could be a closure, an object definition ( like array($object, 'method) ) or a static method ( "class::method" ). See http://php.net/manual/en/function.is-callable.php on what PHP consi…
Comment by
WanWizard
November 2011
permalink
RE: Email class has been removed from the core
That's a mistake. For some reason the git submodule wasn't processed, and email package wasn't included in the zip. We'll pay attention to this for the next releases...
Comment by
WanWizard
November 2011
permalink
Assets in Modules
If you want everything self contained as in one single module directory, you will have to make a modules folder inside public, exposing all your module code at the same time. If you don't have a problem with that, fine, then your issue is solv…
Comment by
WanWizard
September 2011
permalink
Major Updates Required...
I think we can all agree that the forum features leave a lot to be desired. As said, it's a known issue, and on our todo list. For sharing code, I don't believe the forum is the correct place to do so. Only use it for small snippets to s…
Comment by
WanWizard
November 2011
permalink
Creating HTMLPurifier package for Fuel
You also could have searched for it. Then you would have found http://fuelphp.com/forums/topics/view/193 (which I did just now). It gets even better, there's a standard package for it in the Fuel packages repo: https://github.com/fuel-packages…
Comment by
WanWizard
November 2011
permalink
Major Updates Required...
No. You can debate over the quality of the forum software, but that is not relevant to your statement. Developers are present on these forums on a daily basis, and there is always one available in your IRC channel. And so are lots of other people, …
Comment by
WanWizard
November 2011
permalink
Advanced Caching?
Note that as you can't pass a cache instance, database caching uses the default instance, so make sure you configure the Cache class for APC as default store.
Comment by
WanWizard
November 2011
permalink
Creating HTMLPurifier package for Fuel
There is no file called packages/purifier/vendor/HTMLPurifier.standalone.php in your zipfile? I've seen though that HTMLpurifier does deliver it's own autoloader, in HTMLPurifier/Bootstrap.php, which is activated through HTMLPurifier.auto…
Comment by
WanWizard
November 2011
permalink
Creating HTMLPurifier package for Fuel
HTMLPurifier contains an enormous list of classes. You will have to either setup a specific autoloader for those classes so they can be autoloaded in the global namespace, or edit each and every one, add the namespace to them, and then list them AL…
Comment by
WanWizard
November 2011
permalink
Install impossible with Command Line
These instructions are for linux. If it works on a Mac (and how) I don't know, I don't own one. Maybe someone else can comment?
Comment by
WanWizard
November 2011
permalink
Why use int instead of datetime or timestamp in the 'users' table?
A MySQL datetime field is quite difficult to manipulate. If you want to do anything with it, you need to either run SQL with datetime functions, which can become quite complex, or retrieve the records and then use PHP code to convert the data. On t…
Comment by
WanWizard
November 2011
permalink
Why use int instead of datetime or timestamp in the 'users' table?
You use int when you store a unix timestamp instead of a datetime format.
Comment by
WanWizard
November 2011
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,368
Last Active
4:01PM
Roles
Administrator