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
Tasks question
The oil script should be in the application root folder (the one that contains fuel/app and public), it is not part of the core. Even if you have multiple apps on the same server (I do too, and they all run on the same core folders) you should have…
Comment by
WanWizard
August 2012
permalink
Web site list -> Powered by fuelphp
Was to be expected. He quit using FuelPHP when we started dicussions about the architecture of 2.0. Funny to see he switched to Laravel which uses many of the same concepts...
Comment by
WanWizard
April 2012
permalink
Alias'd fieldnames
The ORM isn't really meant to be used as a query builder, so it doesn't have features like this. For this purpose I would stick to using DB calls.
Comment by
WanWizard
August 2012
permalink
oil question
No. Automated deletes are quite dangerous, you will have to do that manually.
Comment by
WanWizard
August 2012
permalink
Repopulating forms, not using Fieldset class
nakp wrote on Wednesday 1st of August 2012: Thank you, thats a workaround, why two == signs? I've used only one xD Oops. That looks like a typo... nakp wrote on Wednesday 1st of August 2012: Labels are used for validation messages as far…
Comment by
WanWizard
July 2012
permalink
CRUD, primary key not being autoincrement
If you have a field to which you assign a value, and this value is gone after save, that would classify as a bug. Can you create an issue for this at http://github.com/fuel/core/issues so it can be fixed?
Comment by
WanWizard
August 2012
permalink
CRUD, primary key not being autoincrement
Both Model_Crud and ORM expect the primary key to be defined as INT AUTO_INCREMENT. If you have defined it differently, you will have to make sure the column contains a valid key value before you save the record.
Comment by
WanWizard
August 2012
permalink
I have got a problem
FuelPHP is designed for your public folder to be your webservers DOCROOT, so your index.php is in the root, and your code is not accessable from the outside as it is outside your docroot. If you deviate from that design, you have two rewrite challe…
Comment by
WanWizard
August 2012
permalink
Repopulating forms, not using Fieldset class
You can not use function calls in property definitions, so that's not going to work. You can work around that by creating a static _init() method for your model class. This gets called when the class loads (see it as a static class constructor…
Comment by
WanWizard
July 2012
permalink
Outputting error, info and success flash message
If you have many base templates, your application design is wrong. If your app is that complex, use the Theme class to bring some order to the chaos. I have apps with hunderds of views, but only a few page templates, which are completely partial b…
Comment by
WanWizard
July 2012
permalink
FuelPHP with Postgres DB, is possible?
The current DBAL is a port of Kohana's DB layer, and very MySQL centric. A new one is currently being worked on, and will be shipped with v2.0. We're looking into the possibility to backport it to 1.x, but no descision has been made sofar…
Comment by
WanWizard
July 2012
permalink
Frustrating problems with connecting to the database
At your service: https://github.com/fuel/docs/commit/d29891024df8a5474f778b9b37edd8fb30caa390
Comment by
WanWizard
December 2011
permalink
\Input::uri() is stripping extensions from the request
FuelPHP is a segment driven framework, which means URL extensions don't have any meaning. I understand that in this particular case it's an issue, but I haven't found a fool-proof way to detect when it is an extension, and when part …
Comment by
WanWizard
July 2012
permalink
Modify view via user role (Best practice)
If the complexity can be managed I would go for b as well. If it gets to complex (like you have for example in a CMS where menu items are completely configurable I would abstract it away in a support class that would have it's own views to gen…
Comment by
WanWizard
July 2012
permalink
Outputting error, info and success flash message
Our depot project uses a dedicated Messages class for this: https://github.com/fuel/depot/tree/1.0/develop/fuel/app/classes/messages And in the view: It allows you to keep HTML out of your controllers (best practice) and into your views, wher…
Comment by
WanWizard
July 2012
permalink
Cant run ORM query before Auth Login() function
So: You login the first time, you get the "Logged in" message and you are redirected to 'welcome/login'. But when you get there you're not. You go back to your logon page, login again, get the "Logged in" message …
Comment by
WanWizard
July 2012
permalink
Cant run ORM query before Auth Login() function
I'm clueless to why this can happen. There is no relation whatsoever between ORM and Session. Which version of Fuel are you on? Any migrations from previous versions on your existing app?
Comment by
WanWizard
July 2012
permalink
How queries caching works?
There are never too many questions. Happy coding.
Comment by
WanWizard
July 2012
permalink
Can I decrypt a string encrypted in javascript with crypto-js in fuel and vice versa?
The Crypt class uses base64_encode()/decode() to make sure the crypted result is a readable string that can be manupulated. So after encrypting your code must base64_encode() it using the same rules as the Crypt class ( check out the safe_b64encode…
Comment by
WanWizard
July 2012
permalink
Build a RESTful API
OAuth provides both authentication and authorisation. Twitter for example uses it to determine if an app has access to your timeline, your followers, if it may tweet in your name, etc.
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
I'm not familiar with Smarty, so I can't help you there. Your snippet uses the template variable 'data' (first parameter), but your template uses 'profile'? And if you print_r() that ->value, what do you get then?
Comment by
WanWizard
July 2012
permalink
How queries caching works?
FuelPHP's database layer doesn't case automatically, it only does that when you tell it to. See http://docs.fuelphp.com/classes/database/usage.html#caching This will use the Cache class, so you have to make sure that is configured properl…
Comment by
WanWizard
July 2012
permalink
Syntax error reporting issue
I copied the import() line from the Crypt class. If that works in oil, then the class loads correctly. Are you sure your core is fully in sync? I'm clueless to why this happens. Can you install a new 1.2.1 in a new virtual host, and see if you…
Comment by
WanWizard
July 2012
permalink
Upload file name empty?
get_files() doesn't return an object?
Comment by
WanWizard
July 2012
permalink
Syntax error reporting issue
Have you updated the rest of the bootstrap, and your index.php? Both have been changed in 1.2 (compared to 1.1). And I made a mistake in my previous message. In 1.2, PHPSecLib can not be autoloaded, so you have to load it manually using import(…
Comment by
WanWizard
July 2012
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,374
Last Active
5:36PM
Roles
Administrator