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
8245
Activity
Asset class
The idea is that in your code, you add assets to asset groups: public function action_bla() { // this doesn't output anything Asset::js('jquery.imgareaselect.min.js', array(), 'head'); } And then in your view, requ…
Comment by
WanWizard
May 2011
permalink
Pagination uri_segment Config Issues
The Pagination class fetches the global config during class init, which happens when the autoloader loads the class. If you use Config::set() after the Pagination class is loaded, it has no effect, and you have to use Pagination::set_config().
Comment by
WanWizard
May 2011
permalink
Capture Errors
show_production_error() is to far in the process. It is called when it is determined that your configuration states that error messages should not be displayed. Whether to call show_production_error() or show_php_error() is determined in the shutdo…
Comment by
WanWizard
May 2011
permalink
Supported databases
Fuel comes with drivers for native MySQL, MySQLi and PDO. PDO implements drivers for these database engines: http://www.php.net/manual/en/pdo.drivers.php.
Comment by
WanWizard
May 2011
permalink
Pagination uri_segment Config Issues
Are your routes setup to accept the additional URI segments?
Comment by
WanWizard
May 2011
permalink
Log - Non-static method *** should not be called statically
If you call a method statically (class::method) you have to declare the method as static: class Class { public [b]static[/b] function method { } }
Comment by
WanWizard
May 2011
permalink
crypt decoding doesn't work
Ah, no. Encrypting something usually requires more space.
Comment by
WanWizard
May 2011
permalink
crypt decoding doesn't work
I can't reproduce this. I've copied your two methods into a test controller, and added this test method: public function action_crypt() { $x = 'This is a string This is a string This is a string This is a string This is a string Thi…
Comment by
WanWizard
May 2011
permalink
crypt decoding doesn't work
Can you please show some code, so we know what you're talking about? I haven't got a clue about what key you're talking, that you are setting to false. Using crypt isn't anything more than $string = 'This is a string'…
Comment by
WanWizard
May 2011
permalink
Exception bug or me being stupid
please report this as a bug on http://github.com/fuel/core/issues.
Comment by
WanWizard
May 2011
permalink
crypt decoding doesn't work
Do not try to manually assign crypto keys. Give the webserver write access to the config file and let the crypt class generate crypto keys. Due to the way keys are generated and encoded, it is very complicated to invent some secure keys yourself. I…
Comment by
WanWizard
May 2011
permalink
update RC2 error
You shouldn't. When the config/crypt.php is already present, the new encryption keys will be added to it. Your webserver needs write access on the file to do that though...
Comment by
WanWizard
May 2011
permalink
update RC2 error
Did you read the docs? The config/crypt.php file is created if it doesn't exist. To be able to do so, your webserver needs write access to the application config folder (only once, to create this file). The reason for this is that we don'…
Comment by
WanWizard
May 2011
permalink
Adding 3rd party libraries
No matter where you want to put it, it needs to comply with the Fuel file and class naming rules. Which is virtually never the case with 3rd party classes. Since you have to modify the code anyway, and write a wrapper, the best place is in the pack…
Comment by
WanWizard
May 2011
permalink
Understanding Auth::instance()->get_user_array()
The Auth drivers use the session class to maintain the users session state.
Comment by
WanWizard
May 2011
permalink
update RC2 error
Yes, read the docs: http://fuelphp.com/docs/classes/crypt.html
Comment by
WanWizard
May 2011
permalink
Module loading
Do not call the other module controller directly. Instead, call it through a request object: $widget = Request::factory('bar/controller/method', false); in which case you need an action_method() in your controller. Or add the 'bar…
Comment by
WanWizard
May 2011
permalink
Module loading
You can load views from a module from INSIDE the module (i.e. a module controller). If the loaded view doesn't exist in the module, but it does in app/views, it will be loaded from there. You can not by default load something from a module fro…
Comment by
WanWizard
May 2011
permalink
ini_set() has been disabled for security reasons
Then you can't modify the 'display_error' setting on that server, which is annoying, but not a problem. You can just comment it out in public/index.php, line 6.
Comment by
WanWizard
May 2011
permalink
Incorrect SQL generated when using and/or combinations and where_open/where_close
Ok, thanks. I'm rather stuck with this at the moment...
Comment by
WanWizard
May 2011
permalink
Lang::line('sentence with a period.') what am I missing?
Yes, that's the idea. It doesn't work like gettext(), that you would provide a sentence for translation.
Comment by
WanWizard
May 2011
permalink
Lang::line('sentence with a period.') what am I missing?
The language class doesn't translate strings, it uses keys to find a language strings. The dot in a keyname is used to be able to lookup multi-array elements. See the example in the documentation (under load() ).
Comment by
WanWizard
May 2011
permalink
Crypt documentation error?
Must be an error left over from the previous crypt class. I'll look into it once Dell has found the decency to fix my laptop...
Comment by
WanWizard
May 2011
permalink
Module routing
'cams/index' routes to the cams module, index controller. which doesn't exist. Try 'cams/cams/index' instead...
Comment by
WanWizard
May 2011
permalink
Routes using :any
404 and root don't define a controller/method pair, like in some other frameworks. They define a route. So when no route can be found for the URI request, the 404 definition is used, and put through the route engine.It is caught by your (:any)…
Comment by
WanWizard
May 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,417
Last Active
5:50PM
Roles
Administrator