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
mail function mail are collected in spam mail by gmail
Most obvious reasons for Google marking something as spam is: - no reverse lookup for the sending email server - no or an invalid reverse lookup for the MX domain (and no SPF records present) and not with the contains of the mail (for as far as Fue…
Comment by
WanWizard
February 2014
permalink
I want to reset fueldid
You should ALWAYS be able to delete a cookie using setcookie() or \Cookie::delete(). If that doesn't work, you either have an entirely different problem, or your diagnosis is wrong (for example, are you sure it's the same cookie you are l…
Comment by
WanWizard
February 2014
permalink
has_access yields an error
You haven't run your Auth migrations, or at least not all of them. One of the last migrations introduced the 'id' field as PK. the old design was flawed, as ORM doesn't support PK == FK, even when PK is a compound key.
Comment by
WanWizard
January 2014
permalink
Theme instance merge custom config
If you think this is a bug, can you create an issue for it at https://github.com/fuel/core/issues ?
Comment by
WanWizard
January 2014
permalink
I want to reset fueldid
Obvious. If the session does not exist, page 2 will create a new session. And $uid will be NULL, since no value called 'userid' will exist in this new session. This is how every session works? What do you think you repair by deleting t…
Comment by
WanWizard
January 2014
permalink
Asset module path with Theme
It would be handy if assets would become module aware. I'll see if I can find some time for that.
Comment by
WanWizard
January 2014
permalink
Asset module path with Theme
Ah, wait a sec. use_modules only works for view files. It is a Theme setting. Asset resolving happens in the Asset class, which is not aware of modules.
Comment by
WanWizard
January 2014
permalink
Asset module path with Theme
It will be: "public/themes/default//css/file.css". If you define it as 'use_modules' => 'modules', It will be: "public/themes/default/modules//css/file.css".
Comment by
WanWizard
January 2014
permalink
I want to reset fueldid
Not sure what you mean. If you have a session id in the cookie that can't be found in the database, a new session will be created automatically. If you want to destroy an existing session, use \Session::destroy().
Comment by
WanWizard
January 2014
permalink
Custom validation error message for each field
No, at the moment the message is linked to the rule.
Comment by
WanWizard
January 2014
permalink
How to check if a user is a group member while not logged in
Had to dive into the code to see what exactly happens, and it seems I'm wrong. If you pass a driver/user combination, all it uses is the driver info, to fetch an alternative list of groups. It ignores any user information you pass to it, it ha…
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
If it's an object, you can whitelist it (which should be done with caution, as it whitelists all instances, and all data inside the instance!). If it's a Model_Crud or ORM model object, you can add custom encoding rules to them, which al…
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
My Smarty is extremely rusty, haven't used it in 4-5 years. Pop in and check if I'm online, I'm at GMT+1, but rather busy during the day.
Comment by
WanWizard
January 2014
permalink
How to check if a user is a group member while not logged in
if(\Auth::member(7, array('ormauth', $user))) must be if(\Auth::member(7, array('ormauth', $user->id))) It needs the user's PK there, not the entire object.
Comment by
WanWizard
January 2014
permalink
Orm Save does reload from db, Model_CRUD does
In ORM, you indeed need observers for that. For these two, standard observers are present, see http://docs.fuelphp.com/packages/orm/observers/included.html#os_created. You can not have expressions in property definitions. If you have a need for the…
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
The variables are escaped in View::get_data(), which is called in the closure in View::render() which includes the view file and passes the variables on. View_Smarty uses $parser->assign($this->get_data()); so it also fetched the cleaned da…
Comment by
WanWizard
January 2014
permalink
Orm Save does reload from db, Model_CRUD does
Not really sure what you mean. Neither Model_Crud nor ORM does a re-read of the record after a save. So (this is what I assume) if you use something like DEFAULT in a MySQL column, the default assigned value when you insert a new row will not be pr…
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
No difference on 1.7.1. In the controller: public function action_index() { return Response::forge(View::forge('welcome/index', array('test' => 'TEST'))); } In the View: Welcome! …
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
I can not reproduce it. Here, on a fresh install of 1.8/develop, it displays "text" and not "text" in bold.
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
By default (i.e. no config in app), there is NO output filter active. You have to define one in your config (and Security will complain if you don't). That config looks ok, so I don't see why the HTML won't be escaped. Have you tried…
Comment by
WanWizard
January 2014
permalink
Use module inside a package
And what is "custom"? You can't just change the folder layout in the "classes" folder...
Comment by
WanWizard
January 2014
permalink
Use module inside a package
Don't use add_core_namespace(), you need the namespace to find the controllers.
Comment by
WanWizard
January 2014
permalink
Use module inside a package
Ah, yes. Sorry about that.
Comment by
WanWizard
January 2014
permalink
Security::htmlentities() is not working.
And you do have this bit? 'output_filter' => array('Security::htmlentities'), if not, nothing will happen...
Comment by
WanWizard
January 2014
permalink
Use module inside a package
For a module to be found, it's root folder needs to be configured in "module_paths". You can do that in your package bootstrap. Assumping your modules are in a folder called 'modules' in your package, add this to the boots…
Comment by
WanWizard
January 2014
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,371
Last Active
May 14
Roles
Administrator