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
Why was group changed to group_id in SimpleAuth?
Will be part of the next release, on it's own it doesn't really warrant an entire release cycle.
Comment by
WanWizard
July 2013
permalink
Input::get() and $_GET is being populated by the URL segment.
No, my laptop (disk) crashed on Satuday, spend the entire weekend rebuilding it. It's slowly becoming usable again, so hopefully I'll have some time tonight.
Comment by
WanWizard
July 2013
permalink
Improper results from Orm\Model::to_array() ?!
Also think about the memory implications of keeping track of everything. Really you would like to have it dive into every related object it can find, but you want to prevent endless loops, that can occur if you have circular relations (like parent(…
Comment by
WanWizard
July 2013
permalink
Can someone show a working sample of the new REST auth method
Can you check line 128 of Controller_Rest: if ($valid_login = $this->{$this->auth}() instanceOf \Response) and change it to if (($valid_login = $this->{$this->auth}()) instanceOf \Response) and see if that fixes it?
Comment by
WanWizard
July 2013
permalink
Improper results from Orm\Model::to_array() ?!
Probably because the recursion quick fix is rather buggy. Feel free to come up with a better solution that prevents loops and doesn't run for hours...
Comment by
WanWizard
July 2013
permalink
Input::get() and $_GET is being populated by the URL segment.
Thanks. I'll have a look as soon as my laptop is back up and running...
Comment by
WanWizard
July 2013
permalink
Using PhpThumb Class
Correct. Best approach is to encapsulate it in a package, and add a facade class to the package which allows you to interact with the phpthumb classes. Have a look at https://github.com/WanWizard/fuel-pdf which shows you how that could work.
Comment by
WanWizard
July 2013
permalink
Input::get() and $_GET is being populated by the URL segment.
What exact webserver setup is running on the production server? Can you dump $_SERVER in your index.php? If you don't want the info public, you can mail it to me at "wanwizardfuelphp.com". I can use it to simulate your environment he…
Comment by
WanWizard
July 2013
permalink
Related Model_Soft cannot delete.
This is usually caused by incorrect definition of the relation. As a rule of thumb, the model that contains the foreign key should have the "belongs_to". So if your "Computer" model contains "os_id", it has the FK. Th…
Comment by
WanWizard
July 2013
permalink
Oil update a migration
No, oil can not generate updates from a model. You will have to either create a new migration with your changes, or revert the migration, modify the migration file to match your changes, and run the migration again.
Comment by
WanWizard
July 2013
permalink
Oil admin generator
"generate admin" generates a complete admin section for the given table, so model, controller and views, needed to provide CRUD functionality. Not sure what you mean by "re-use".
Comment by
WanWizard
July 2013
permalink
Can someone show a working sample of the new REST auth method
And you're sure your method is called?
Comment by
WanWizard
July 2013
permalink
Can I return params from extended validation rule?
You can only return a result from a validation rule: - true: validation has passed, validated value is unaltered - false: validation has failed, validated value is unaltered - other value: will replace the validated value and is considered a pass S…
Comment by
WanWizard
July 2013
permalink
Input::get() and $_GET is being populated by the URL segment.
Did you change the default .htaccess that was included with Fuel (in the public directory) or do you have a setup that does not use this file? For different webserver environments, you need different rewrite rules. For example, for an fgci environm…
Comment by
WanWizard
July 2013
permalink
reCaptcha / Captcha - Working or not?
Seems like you can't call the check() method twice. Other then it will call the recaptcha service twice, I don't see an immediate reason why that wouldn't work.
Comment by
WanWizard
July 2013
permalink
Can someone show a working sample of the new REST auth method
Code looks fine. Your warden() method should return: - true in case authentication succeeded - false in case authentication failed - a Reponse object if you want to return a custom response at failure
Comment by
WanWizard
July 2013
permalink
Partial undefined in the template
Partials are in $partials, so you need $partials['var'] and not $var (never used twig, so I don't know it's correct notation). p.s. this is better and a bit quicker: $tpl = Config::get('theme_to_use', 'default…
Comment by
WanWizard
July 2013
permalink
Already on the latest migration
If you had run migrations before, there is also a migrations.php file in the environment config folder (if you haven't selected one, it will use the 'development' environment) that you need to remove too if you remove the migration ta…
Comment by
WanWizard
July 2013
permalink
FuelPHP 1.61 and Smarty 3.1.14
You're trying to install the 'dev' version, which composer wants to install directly from the source repository, which from the looks of it is an svn repository. And you don't have svn installed.
Comment by
WanWizard
July 2013
permalink
FuelPHP 1.61 and Smarty 3.1.14
See https://packagist.org/packages/smarty/smarty Select the one you want, add the "require" to the composer.json file in the Fuel root, and run "php composer.phar update" to install the package.
Comment by
WanWizard
July 2013
permalink
Improper results from Orm\Model::to_array() ?!
To start with your last question: all our projects run on 1.7/develop, and all of them use ORM. You just seem to bump into issues nobody has... ;-) Line 1880 is a bracket, and line 1885 is an 'else' here, so you're not using the late…
Comment by
WanWizard
July 2013
permalink
Users
I don't really understand this question. Installing Apache and PHP on Windows is outside the scope of this framework, and if you have installed it, FuelPHP just works, it doesn't need additional explaination. Lots of people use it on Wind…
Comment by
WanWizard
July 2013
permalink
How To Set Table Name Dinamic?
You only want to use a single table for this model? Or different tables at the same time? In that last case, you can't use a static solution. If you can use a static property, add this to your model: public static function table() { …
Comment by
WanWizard
July 2013
permalink
FuelPHP 1.61 and Smarty 3.1.14
Enable the parser package in the always_load section of your config. Then copy the parser.php config file to app/config. Then change the extension definitions to: 'extensions' => array( 'dwoo' => array(…
Comment by
WanWizard
July 2013
permalink
Date::forge()->create_from_string
Your webserver is Linux? In general, the restrictions are on the Windows platform, anything that works on Windows should work without problems on Linux. Having said that, the first parameter of create_from_string() should be a valid date/datetime s…
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,399
Last Active
7:11AM
Roles
Administrator