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
Question about database connections
It doesn't use prepared statements because the query builder needs to maintain compatibility with other drivers, which do not support this (notably the old PHP function based drivers). There is no security risk, the query builder takes care of…
Comment by
WanWizard
September 2011
permalink
Question about session
The public folder should be the document root of your webserver, so all code is not accessable via the browser. If you have access to the webserver's config, the best option is to modify the document root. If you don't, see http://fuelph…
Comment by
WanWizard
September 2011
permalink
Warden
There's an entire flame war about the pro's and con's. bcrypt has been surpassed by scrypt, so if you want the latest and greatest, use that instead. For most purposes, including Fuels, PBKDF2 is more than secure enough. The stackove…
Comment by
WanWizard
September 2011
permalink
Warden
That is correct, PHPSecLib implements PBKDF2, which NIST advises for password hashing, and which is used by Fuel's Auth package.
Comment by
WanWizard
September 2011
permalink
Crude CRUD
Then the path is still not correct. You mentioned before you used '/tmp', maybe try 'C:\TMP'? (I can't test myself, I don't use Windows).
Comment by
WanWizard
August 2011
permalink
Why git?
oil at the moment only supports git for installs. We're working at providing other means of installation (for example zip files) of both the core and (third party) packages.
Comment by
WanWizard
September 2011
permalink
Question about session
I can imagine that with a domain of "
Comment by
WanWizard
September 2011
permalink
fuel 1.1 dev
Yes.
Comment by
WanWizard
September 2011
permalink
Warden
Why use (and thus include) PHPCryptLib, and not PHPSecLib, which is already available in the Fuel core?
Comment by
WanWizard
September 2011
permalink
Fuel\Core\Fuel_Exception [ Error ]: Assigned relationships must be an array or null...
Related objects are the result of a get() operation, which always returns an array, even if there is only one object.
Comment by
WanWizard
September 2011
permalink
Routing optimization
Please add this as a feature request at https://github.com/fuel/core/issues, so it won't be forgotten.
Comment by
WanWizard
September 2011
permalink
Question about session
Why would you need the session id? It's an internal and random value, that regularly changes during the course of a session. You should not use this value in your application.
Comment by
WanWizard
September 2011
permalink
How to make custom submit button with css and Html::
That looks very much like Html::anchor(), an anchor is not a form element, and certainly no submit button. And your other question is not a question. What do you want to know?
Comment by
WanWizard
September 2011
permalink
Fuel\Core\Fuel_Exception [ Error ]: Assigned relationships must be an array or null...
// now lets add a project and the info provided. $user->projects = new self(); $user->projects is an array of objects, not an object. So it should be $user->projects[].
Comment by
WanWizard
September 2011
permalink
Pagination problem
The Pagination class doesn't do anything intelligent when constructing the URL's. If you want the page to be segment 4, you need to make sure that 'pagination_url' contains 3 segments. It just sticks it on. I store selections/fi…
Comment by
WanWizard
September 2011
permalink
fuel 1.1 dev
No. I think 1.1/devel is as stable as 1.0. I use it for all my projects. Note that there are quite a few significant changes for 1.1, so if you migrate, you have to change some code to get your application working again.
Comment by
WanWizard
September 2011
permalink
Crude CRUD
@PaulBoCo, That doesn't work as a test, sessions are only written at the end of script execution. Try this instead: public function action_index() { $userid = Session::get('userid'); if ( empty($userid)) { Deb…
Comment by
WanWizard
August 2011
permalink
Some video questions about Fuelphp
Asset doesn't do any manipulation on the filename, and neither does find_file(), responsible for locating the file. Most of the images in my application have underscores too, and that works without problems.
Comment by
WanWizard
September 2011
permalink
Using MONTH() and DAY() in find()
Probably best, the Query class needs native support for DB::expr to deal with this properly.
Comment by
WanWizard
September 2011
permalink
Using MONTH() and DAY() in find()
Tried it, and indeed, it only supports strings at the moment. Which means this should work: Model_Something::find('all', array('where' => array(array((string) \DB::expr('MONTH(column)'), '>', date(&qu…
Comment by
WanWizard
September 2011
permalink
Crude CRUD
Why include a session config file (that might not work for someone) and not rely on the default config provided by fuel (which is based on a cookie, works on every setup)? If it is due to size restrictions (the only reason I can think of), it is be…
Comment by
WanWizard
August 2011
permalink
3 ways of rendering a view in FuelPHP
The current development docs don't mention the render() method anymore, but indeed, the controller still contains the method. I think that needs to be changed, as $this->response->body is deprecated, in v1.1, controllers need to return t…
Comment by
WanWizard
September 2011
permalink
Using MONTH() and DAY() in find()
If I interpret the docs correctly, the syntax should be Model_Something::find('all', array('where' => array(array(DB::expr('MONTH(start)'), '>', date("n")))));
Comment by
WanWizard
September 2011
permalink
3 ways of rendering a view in FuelPHP
Maybe in your controller. But in a standard controller, no method render() exists (your option 2). And View::factory() does (currently) the same as new View(); I would suggest to use the factory/forge methods where available, as some do more than o…
Comment by
WanWizard
September 2011
permalink
help me understand how to use fuel-nestedsets package
Davide Bellini wrote on Monday 19th of September 2011: I haven't understand on how to use this package ... exists any complete example? I don't have any documenation ready, as the package is still in alpha stage. Functionally, it is lo…
Comment by
WanWizard
August 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,368
Last Active
5:51AM
Roles
Administrator