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
Pager.php Pear did not work in fuelphp ?
The Fuel framework doesn't have a class called Pager, so I don't know what that is. It does have a class called Pagination. From the methods used I assume Pager is some sort of extension for it, but written for a very old version of the f…
Comment by
WanWizard
February 2014
permalink
Pager.php Pear did not work in fuelphp ?
How old is the framework you're using? We don't use factory() since I think 1.1?
Comment by
WanWizard
February 2014
permalink
problem while create another auth package
Please do not post the same question twice.
Comment by
WanWizard
February 2014
permalink
user registration how to store password in format of salt
That is not how it works. You either pass a driver name to forge(), or you pass a configuration array (which must contain a driver name). So you need something like: \Config::load('adminauth', true); \Auth::forge(\Config::get('admi…
Comment by
WanWizard
February 2014
permalink
Can someone show a working sample of the new REST auth method
It was committed on July 7th 2013. Which means it was part of the 1.7 release, and 1.7.1. has it too. I double checked the code in the zip, and it does. So there must have been something fishy about your install?
Comment by
WanWizard
February 2014
permalink
working with DECODE(blob field), user login
First rule of development: don't code what you can use from someone else... :-)
Comment by
WanWizard
February 2014
permalink
working with DECODE(blob field), user login
In general, if you need to pass complex constructs to a query, you need to wrap it in a DB::expr() to avoid it being encoded and/or escaped. Something like: $query = DB::select("*")->from("users")->where(DB::expr("DE…
Comment by
WanWizard
February 2014
permalink
working with DECODE(blob field), user login
Start by saying what the problem is. What do you want, and what doesn't work? In other words, for what is this supposed to be a work-around?
Comment by
WanWizard
February 2014
permalink
user registration how to store password in format of salt
You can not have two active simultaneously. You can use a different config by forging the Auth instance manually, and pass a custom config to it (that for example has a different table name). Note that when you access any Auth method statically (…
Comment by
WanWizard
February 2014
permalink
Fuel Start - It is FuelPHP backoffice system with some ACL features
We have it built in our deployment system that any "environmental" changes are executed via migrations, so when we deploy an application, or a new version, we run all migrations, and everything is up to date on the new server, no user (or …
Comment by
WanWizard
February 2014
permalink
Fuel Start - It is FuelPHP backoffice system with some ACL features
I understand that, I was just responding to "creating the blog table".
Comment by
WanWizard
February 2014
permalink
Fuel Start - It is FuelPHP backoffice system with some ACL features
Why is that not in a migration file? That would be more logical, and Fuel standard?
Comment by
WanWizard
February 2014
permalink
Pass parameters by post instead get in controller edit options?
If you mean controller method arguments, the answer is no. FuelPHP is based on a URI segment system, in which URI segments map to namespaces, controllers, action methods and parameters. But off course you can create forms, post them, and process th…
Comment by
WanWizard
February 2014
permalink
Question about theme override
I assume you want a uniform look and feel for your application. In which case page templates are always global, not linked to a module or a controller in a module, but defined at the theme level. Like you would have with CMS applications, you have …
Comment by
WanWizard
February 2014
permalink
Modules
The idea behind modules is to create loose coupling between functional application blocks, which in turn will allow you to re-use your modules. Given this, hardcoded calling between controllers (in a module or not) is a bad idea. As Syntaxlb alre…
Comment by
WanWizard
February 2014
permalink
Validation doesn't work. $validator->run() always returns FALSE
Your search form is a HTTP GET, not a POST. By default, run() processed posted data. There isn't any here, so it returns false. So either change your form to POST, or use if ($validation->run(\Input::get())) { ... } to explicity valid…
Comment by
WanWizard
February 2014
permalink
user registration how to store password in format of salt
Simpleauth stores additional properties in the profile_fields array(). This happens automatically, behind the scenes.You can just use: \Auth::update_user(array('Mobile_No', '+9112345678')); and it will be set. To fetch it, get…
Comment by
WanWizard
February 2014
permalink
user registration how to store password in format of salt
Simpleauth? Ormauth? Your own auth? You still haven't told me what you're using, to what you want answers to...
Comment by
WanWizard
February 2014
permalink
How to setup code completion in Phpstorm?
I understand. The task in that post should generate an up-to-date class list for you.
Comment by
WanWizard
February 2014
permalink
How to setup code completion in Phpstorm?
I don't think the API has changed a lot, so this file is still quite usable (and otherwise the few changes can be made manually). I've never has any use for such a file, I know most of the API, and if I'm not sure, I have the docs in…
Comment by
WanWizard
February 2014
permalink
How access to theme variables in template ?
The info block isn't really for passing data to a theme, it's more meant to contain information about the theme, or info needed to configure the theme (for example, if it comes in multiple colours). The theme layout, and all partials, are…
Comment by
WanWizard
February 2014
permalink
user registration how to store password in format of salt
And the answer is: it depends. If you use the Auth package, it will do it for you when you call Auth::create_user(). If you don't, the method depends how your own code is setup. In general you either use a per-table salt or a per-user salt. I…
Comment by
WanWizard
February 2014
permalink
New `as_object()` behavior in 1.8?
Thanks.
Comment by
WanWizard
February 2014
permalink
New `as_object()` behavior in 1.8?
This is not a model that has an EAV container defined? Because EAV and custom data are mutually exclusive. If not, it is a bug that was introduced when rewriting the constructor. If so, please create an issue for it at https://github.com/fuel/orm/i…
Comment by
WanWizard
February 2014
permalink
user registration how to store password in format of salt
What are you using? Auth? Something you made yourself?
Comment by
WanWizard
February 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