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
8243
Activity
How to learn Fuelphp routing
Can you explain exactly what you mean? What did you do? What didn't work?
Comment by
WanWizard
December 2011
permalink
Hash user password before save
I think Jelmer means add a method to your model that hashes: public function password($pass) { // very simplified example... $this->password = sha1($pass); }
Comment by
WanWizard
December 2011
permalink
Using MongoDB: selecting a document by its ObjectID
On which version of FuelPHP are you? This has been corrected some time ago. https://github.com/fuel/core/blob/1.1/develop/classes/mongo/db.php#L296
Comment by
WanWizard
December 2011
permalink
Rest Controller and Response 1.1
The rest controller is not a normal controller, so it works and behaves differently. The way to craft a response is documented, so check the docs. Hint: it uses the response() method.
Comment by
WanWizard
December 2011
permalink
Hash user password before save
Afaik that is not supported. Perhaps you should add a feature request: http://github.com/fuel/orm/issues.
Comment by
WanWizard
December 2011
permalink
Security in my app classes etc..
It's not going to be easy to explain how to install outside the docroot, as that would require knowledge of the server environment, which is different for everyone. I my case, Fuel lives in /data/fuel/1.0, /data/fuel/1.1 and /data/fuel/develop…
Comment by
WanWizard
April 2011
permalink
Static Cache
This is pretty easy to make. Extend the Request class in your app. Overload the execute function. Use $this->route to determine a unique cache-id per URI. Do a cache lookup with this id. If exists, set the response object with the cached data as…
Comment by
WanWizard
December 2011
permalink
How to learn Fuelphp routing
We know. Will be fixed shortly...
Comment by
WanWizard
December 2011
permalink
Modules
You load module view the same way as views in an app controller, using \View::forge(). Your controller method should return a response object, which can contain anything, but for your case it could contain a view. Something like: class Controller_F…
Comment by
WanWizard
December 2011
permalink
Package class extend problem with orm model
Properties don't have anything to do with the table name, but with the column names. See http://docs.fuelphp.com/packages/orm/creating_models.html#/propperties. It is therefore not something you define in a base model that is meant to be exten…
Comment by
WanWizard
December 2011
permalink
CSRF on Multiple Forms
Use the javascript function documented to fetch the current token before you submit the form.
Comment by
WanWizard
December 2011
permalink
extreme beginner question about controller in the url
And @HiroKws wins! Very well spotted! That is indeed the issue. And whether or not the router should be case sensitive, that is a very good question, I'll pass this on to Dan.
Comment by
WanWizard
December 2011
permalink
extreme beginner question about controller in the url
No funny rewrite rules somewhere?
Comment by
WanWizard
December 2011
permalink
extreme beginner question about controller in the url
If you don't specify a controller or a method on the URI, action_index should be called.
Comment by
WanWizard
December 2011
permalink
Package class extend problem with orm model
The ORM model needs to know the definition of your table, and all columns. If you haven't defined them (in $_properties), the model with run a query to determine them at runtime.
Comment by
WanWizard
December 2011
permalink
extreme beginner question about controller in the url
I do not see a reason why the URI segment should start with an uppercase letter. The router will convert it to "Controller_Hello", no matter what case the URI was in. So "HELLO" should give the same response as "hello"…
Comment by
WanWizard
December 2011
permalink
Oil Refine migrate not working as expected
Are you referring to https://github.com/philsturgeon/fuelphp-gettingstarted? Was that not mentioned in the tutorial? You'll need a git client to install it locally, as it uses submodules to fetch all FuelPHP components. Alternatively, just dow…
Comment by
WanWizard
December 2011
permalink
Oil Refine migrate not working as expected
I don't think this is an issue. The Auth::create_user() method is built for use in a web application, not to be used on the commandline. Your second error indicates it has done it's thing... It could be dealt with by adding checks to ever…
Comment by
WanWizard
December 2011
permalink
Class __int call twice
_init() is called as soon as the class is loaded. See it as a static equivalent of __construct(). There is no need to call it yourself.
Comment by
WanWizard
December 2011
permalink
Oil Refine migrate not working as expected
Without having seen the code yet: the biggest no in strict mode is defining a column as 'text' (or similar), allow null values, but don't supply a default value. Given the fact that this is a blog, this might well be the case. You co…
Comment by
WanWizard
December 2011
permalink
Extending package model class from APPPATH
Ok. So AWayne's suggestion earlier in this thread was the correct one. Maybe we should document this somewhere...
Comment by
WanWizard
December 2011
permalink
Extending package model class from APPPATH
Which means you can never extend a class in such a package by creating one in your app/classes?
Comment by
WanWizard
December 2011
permalink
Oil Refine migrate not working as expected
I'm out of ideas. Over to Phil.
Comment by
WanWizard
December 2011
permalink
Extending package model class from APPPATH
We'll check it out.
Comment by
WanWizard
December 2011
permalink
Oil Refine migrate not working as expected
You don't have multiple versions of PHP installed? If you type 'php -v' on the commandline, do you get the expected version?
Comment by
WanWizard
December 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,390
Last Active
12:41AM
Roles
Administrator