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
$view->set() method is not escape related ORM object.
Correct. If you need something, fetch it explicitly. No need to run potentially gigantic queries if it's not needed. As for ORM objects, and passing data to a view: set() always encodes anything, unless you use false as third parameter. set_sa…
Comment by
WanWizard
July 2013
permalink
FuelPHP 1.61 and Smarty 3.1.14
Perhaps you should check out the documentation. Select "General, Configuration" from the menu, and read how to configure the framework. You'll see "always_load" already mentioned in the 4th paragraph. Add the parser package…
Comment by
WanWizard
July 2013
permalink
How to Decorate Fieldset genereted forms
Fuel currently doesn't have that. A refactor is planned for version 2. To style your fieldset, first create the desired template in your form.php config file. Copy it over from fuel/core/config to app/config before making changes. Once your H…
Comment by
WanWizard
July 2013
permalink
"No changes allowed" when attempting to delete parent model
Ok, I'll discuss it with Steve, we have to dive into the code then. I'm currently traveling, so if I have to do it, it has to wait until I get back...
Comment by
WanWizard
July 2013
permalink
Installing database package 2.0?
No, the current ORM is hardcoded to use the existing 1.x DB layer. There's a new 2.0 ORM coming that will use the 2.0 DBAL, but it's not ready yet.
Comment by
WanWizard
July 2013
permalink
paypal integration
It's the only one I know if. Pop into IRC, huglester is often online, and see if these issues can be sorted out.
Comment by
WanWizard
July 2013
permalink
Installing database package 2.0?
It's not 100% complete yet, but you can install it like all other 2.0 components, using Composer. Check the composer.json file in your installation root, it already contains Upload, you can just add Database to it.
Comment by
WanWizard
July 2013
permalink
Buggy Ormauth ?
Can you create an issue for this at https://github.com/fuel/auth/issues documenting this case, so someone can fix it? We don't use the forums for bug reports.
Comment by
WanWizard
July 2013
permalink
How can I use a data type of 'bit' or 'tinyint' in my model?
Which RDBMS is that? BIT column is a binary type in MySQL (though it's documented as numeric type - that's not precisely true) and I advice to avoid it due to problems with client libraries (which PDO issue proves). You will spare yoursel…
Comment by
WanWizard
July 2013
permalink
paypal integration
Perhaps https://github.com/huglester/fuel-paypalipn ? Huglester is a very active user in the FuelPHP community.
Comment by
WanWizard
July 2013
permalink
How can I use a data type of 'bit' or 'tinyint' in my model?
Not sure that is supported, but I'll have to look into the code. Problem with this is that oil tries to be generic, while these datatypes are MySQL specific.
Comment by
WanWizard
July 2013
permalink
IN clause on a related table
If you're only interested in your primary model data, why not run a standard DB query, and use as_object() to have it return model instances?
Comment by
WanWizard
July 2013
permalink
Markdown issues
The first two are the same, the last would do it generically for all View classes, which I would never do.
Comment by
WanWizard
July 2013
permalink
Add language support
Perhaps, but it's the way PHP works. If the file exceeds the size defined in the php.ini, you won't be able to access it, and you'll get this error. I can imagine that it will abort the upload if this size is exceeded to avoid unneede…
Comment by
WanWizard
July 2013
permalink
Add language support
Ideally everything language dependent should be in language files, so you can swap just by switching the language set in the config. This is what the Lang class is for. All our applications have a multilingual interface using this mechanism.
Comment by
WanWizard
July 2013
permalink
Markdown issues
The problem is not in markdown, but in the way you use the template. Any variable passed to a View (and $this->template is a View) will be encoded unless you tell it not to. In this case, you're assigning a View to a View variable, so tha…
Comment by
WanWizard
July 2013
permalink
Upload creates ghost file
You probably have auto_process enabled in the upload config. Before 1.6, you could get away with auto processing, and then calling process() yourself as well. As of 1.6, you can no longer. If you need to process() manually, disable auto_process in…
Comment by
WanWizard
July 2013
permalink
"No changes allowed" when attempting to delete parent model
_init is called on first class load. The issue you probably have is that when the Model_Subscription is loaded (triggered by activity in the Model_Plan class), Model_Plan is already in a frozen state because the delete is pending. When you run a qu…
Comment by
WanWizard
July 2013
permalink
404 error on pagination
you've set the current page hardcoded to 1 in your pagination definition?
Comment by
WanWizard
July 2013
permalink
404 error on pagination
No. If your URL is http://yourhost/searchprofile/index/page/1, then the uri_segment number is 4 (the page number is the 4th segment in that URL). In the Uri class, you see the segments passed to the controller, after resolving the controller. Pagi…
Comment by
WanWizard
July 2013
permalink
404 error on pagination
I think your segment count is wrong. 2 is usually where the method name is: /controller/method/action/, so it should probably be 4, unless your uri has a diifferent structure.
Comment by
WanWizard
July 2013
permalink
Password hash through Auth
Hmm... wasn't aware that it could return those characters as well. Maybe base64 encode it before adding it to the url? Or simply use Str::random() to generate a long enough random string?
Comment by
WanWizard
July 2013
permalink
View blocks buffering similar to CakePHP's blocks?
Leave it, no longer needed, I've added the feature to 1.7/develop, for both css and js. See http://fuelphp.com/dev-docs/classes/asset/usage.html for examples.
Comment by
WanWizard
July 2013
permalink
"No changes allowed" when attempting to delete parent model
It throws the exception when accessing the relations, before actually running the query. So wether or not there are Model_Subscription records is not relevant, it fails on fetching Model_Plan's relation structure.
Comment by
WanWizard
July 2013
permalink
View blocks buffering similar to CakePHP's blocks?
You are right. Can you create a feature request for this at https://github.com/fuel/core/issues with a use case?
Comment by
WanWizard
July 2013
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,365
Last Active
April 26
Roles
Administrator