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
Loading languages
Autoloading happens during Fuel's init phase, so way before any controller is loaded. The preferred method is to use a class for it. Create a static _init() method in the class which is called upon loading, and in it load your language code fr…
Comment by
WanWizard
July 2012
permalink
Class not found error
that would have been my next question.
Comment by
WanWizard
July 2012
permalink
Class not found error
Why does the error message mention "Model\types\licenses" (lower case) while the "use" statement mentions "Model\types\Licenses"?
Comment by
WanWizard
July 2012
permalink
controller inside a controller
It is not specifically mentioned in the Controller_Template because it's standard behaviour in FuelPHP. All file locate activities are done by the Finder class, which allows you to search: - using a basepath, a folder and a file (APPPATH, …
Comment by
WanWizard
November 2011
permalink
controller inside a controller
Interitance works fine. The issue here is that your $template is set in the Base namespace, but defined 'relative'. So your Module1 controller will search for it within it's namespace (as that is the current context) and if not found…
Comment by
WanWizard
November 2011
permalink
Profiler output fix
Nano, If you notice bugs like this, please create an issue for them on http://github.com/fuel/core/issues so someone can look at it. We don't use the forum for bug reports. Issue is corrected in 1.3/develop.
Comment by
WanWizard
July 2012
permalink
How to rebuild database structure ?
Yes, I understand. But you shouldn't run a FuelPHP application on a staging or production server in development mode (which is the default). You probably get this error because you've copied everything over, including the migrations.php c…
Comment by
WanWizard
July 2012
permalink
problems with autoloader and apc
It is extremely easy to reproduce, even without APC (because for the last time that is not the issue): // get the default database instance $db = \Database_Connection::instance(); // and now create the error \Database_Connection::instance($db); a…
Comment by
WanWizard
July 2012
permalink
problems with autoloader and apc
You're still focusing on an issue with the Fuel core in relation to APC. And I keep on telling you it's not the issue. I would dare to bet that at least 80 percent of all FuelPHP applications run in an APC environment (I even do that in m…
Comment by
WanWizard
July 2012
permalink
How to rebuild database structure ?
Depends on your definition of "rebuild". If you are refering to the database schema, and you have used migrations to create your database, then all you have to do is: - inform the app the environment is Fuel::stage (test is used for unit…
Comment by
WanWizard
July 2012
permalink
Extend & replace module controller and view
Routing logic says that if the first segment is a module, it will continue with the module, and will only fall back to the app if no match for the request is found in the module. With identical names, you can not force it to load an app controller …
Comment by
WanWizard
January 2012
permalink
problems with autoloader and apc
I have a feeling you don't fully grasp what "instanceOf" does. It will tell you if a specific object is an instance of a class. If you have class C extends D {}; class B extends C {}; class A extends B {}; $var = new A(); then &quo…
Comment by
WanWizard
July 2012
permalink
MongoDB and the $slice operator
No experience, sorry. Perhaps you can hop onto our IRC channel (#fuelphp), I know some people there use MongoDb.
Comment by
WanWizard
May 2012
permalink
How do I set up multiple fuel installs under the same server with different subdomains?
Set your documentroot to /var/www/app1/public, otherwise the default rewriting rules won't work, as they expect 'public' to be your docroot.
Comment by
WanWizard
June 2012
permalink
problems with autoloader and apc
The Fuel core knows about the alias. So when Fuel\Core\Database_MySQLi_Connection is loaded, the autoloader will load \Fuel\Core\Database_Connection because of the alias. If it wouldn't been able to do that, that 'extend' would fail …
Comment by
WanWizard
July 2012
permalink
controller inside a controller
I think that is bad design. If you need functionality in multiple controllers, split it off into a separate class (not a controller), and call that, like you would call a model. Alternatively, you can do "Controller_Test extends Controller_Tes…
Comment by
WanWizard
November 2011
permalink
Loading Modules and Namespaces
You have a base configured? If not it will use the info from $_SERVER, I can't imagine code that would come up with a different hostname by itself...
Comment by
WanWizard
July 2012
permalink
controller inside a controller
You are right, they are also required. But having said that, someone who wants to instantiate controllers like this imho has some serious flaws in their application design. You should not do this, like you should not call one controller from anothe…
Comment by
WanWizard
November 2011
permalink
Loading Modules and Namespaces
The same applies to 'Pinups\Home', which should be '\Pinups\Home'. If you want to route to a module, by default the URI is "/module/controller/method/any_params".
Comment by
WanWizard
July 2012
permalink
controller inside a controller
Read the message carefully. This has nothing to do with calling other controller method, it's about the fact that the __construct() prototype in your class is not correct. If you extend \Fuel\Core\Controller and you overload methods, you have …
Comment by
WanWizard
November 2011
permalink
Extend & replace module controller and view
zejesago wrote on Wednesday 4th of July 2012: Hey antitoxic, just wondering how you were able to reroute from the module to your app controller. I have the same problem and I can't seem to reroute to my app's User Controller instead of …
Comment by
WanWizard
January 2012
permalink
Extend & replace module controller and view
antitoxic wrote on Wednesday 18th of January 2012: Well cheers anyway. But notes like "That is what extending does, yes." are no way to attract developers. I might have misunderstood the question. Re-reading your question you ask &quo…
Comment by
WanWizard
January 2012
permalink
how to cache object use file cache?
No, it doesn't do that automatically, you'll have to use dot-notation for the cache key. So "this.is.a.key" will be stored in "this/is/a/key.cache".
Comment by
WanWizard
July 2012
permalink
Adding default properties to ORM Model when using Oil
Do you mean the code that generates the migration? See oil/classes/generate/migration/actions.php. I'm not sure how to extend this single file, as Oil classes are not aliased. I'll ask around.
Comment by
WanWizard
June 2012
permalink
AJAX Login - With Template
Does it not work because the session cookie is not accepted? Modern browsers are more and more restrictive when accepting cookies which are not correctly configured or not RFC compliant. Chrome is pretty strict in this respect. That is why I asked …
Comment by
WanWizard
June 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,375
Last Active
6:34PM
Roles
Administrator