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
8245
Activity
[FuelPHP 1.7.1] REST-Controller
Ah, wait, missed a bracket. You are injecting a response in a response, and then sending the outer response. What is the point of that? $this->response is already a response object? Let's look at your statement in detail. $this->respon…
Comment by
WanWizard
December 2013
permalink
[FuelPHP 1.7.1] REST-Controller
You should NEVER send a response from a controller, as the front controller (your index.php) is in charge of sending reponses back. This has always been the case. send() will echo the response out, and does not return anything. So you're actio…
Comment by
WanWizard
December 2013
permalink
oil refine migrate to remote server
just type the URL in?
Comment by
WanWizard
December 2013
permalink
oil refine migrate to remote server
hmm... having fun I see. ;-) I've added the missing "oil server" documentation and added inline help for the "server" command to the 1.8/develop branch. It should come online soon, at http://dev-docs.fuelphp.com.
Comment by
WanWizard
December 2013
permalink
oil refine migrate to remote server
As to your exception: are you on MAMP by any chance? Or some other xAMP package? Chances are that your webserver and the PHP cli binary use different php.ini files (on a Mac virtually always the case), which means the correct PHP config isn't …
Comment by
WanWizard
December 2013
permalink
oil refine migrate to remote server
There is no help for the server command, it just runs PHP's built-in webserver. And it expects a standard Fuel setup, where you have a public folder (which is your docroot), and in it your index.php front controller. If you don't have th…
Comment by
WanWizard
December 2013
permalink
Can you use different namespaces in $_belongs_to
That is not correct, both for 'model_to' and 'model_from' you can specify a fully namespaced class name. You should not specify the leading backslash, and ucfirst(), so "Core\\Model_Useraccount". I've updated that…
Comment by
WanWizard
December 2013
permalink
oil refine migrate to remote server
it starts a local built-in PHP server, so you can use Fuel without having a webserver ready. It doesn't have any options, other then serving your index.php.
Comment by
WanWizard
December 2013
permalink
FuelPHP 1.7.1 Composer file doesn't exists
The phar should ideally not be part of any distribution, it's something that should be installed on the server, and maintained. It gives you a warning when it's over 30 days old.
Comment by
WanWizard
December 2013
permalink
ORMAuth users_permission field 'action' format
The permissions table lists all available actions for that permission, in an indexed array format: array( 0 => 'add', 1 => 'view', 2 => 'edit', 3 => 'edlete' ) (which is identical…
Comment by
WanWizard
December 2013
permalink
Observer Typing Model forge
There are lots of ways to deal with it, but all are application specific. So it will not be easy (or will be complex) to create an observer generic enough to include. We use form (fieldset) validation rules too, for example for date fields, where t…
Comment by
WanWizard
December 2013
permalink
Observer Typing Model forge
The observer requires a Date object for date/time fields, that is correct. So if you use these validation rules, you have to make sure the model object contains the correct values. There is no automatic way of doing it, dates and times can be input…
Comment by
WanWizard
December 2013
permalink
FuelPHP 1.7.1 Composer file doesn't exists
p.p.s. I just downloaded the 1.7.1. zip to check, and the composer.json is present in the file?
Comment by
WanWizard
December 2013
permalink
FuelPHP 1.7.1 Composer file doesn't exists
p.s. everything you would need from composer to run Fuel is included in the zip file, which is the reason it is not there at the moment. You absolotely don't have to run composer, the contents of the zip should run fine. So you have another iss…
Comment by
WanWizard
December 2013
permalink
FuelPHP 1.7.1 Composer file doesn't exists
I'll add the composer file in a minute. I don't see the two as related, the fuel\core\classes\autoloader.php must absolutely exist, and is part of the fuel core, not related to composer. So you need to check why it can't load that fi…
Comment by
WanWizard
December 2013
permalink
Monolog composer
Probably, but we haven't tested it.
Comment by
WanWizard
December 2013
permalink
Conflict with Wordpress (register_shutdown_function)
Weird indeed. I also don't see how flushing all buffered output could influence sessions.
Comment by
WanWizard
December 2013
permalink
How to update related objects
I haven't got a clue. set() operates on the current object, and only sets the property in it's own data container. Can you run this code with the profiler on, and check which update queries are run when you save?
Comment by
WanWizard
December 2013
permalink
Upload creates ghost file
"fuelphp/upload": "2.0.1" is the latest version, and used in 1.7.1. You can not set "auto_process" to false by passing config, you have to change it in the config file. It is a flag checked in the class init, which is…
Comment by
WanWizard
December 2013
permalink
Conflict with Wordpress (register_shutdown_function)
From a PHP point of view, it is no problem registering multiple shutdown functions. So it must be something special Wordpress does, that prevents Fuel's shutdown function to kick in. And that is a bad thing, because there is a lot happening th…
Comment by
WanWizard
December 2013
permalink
Cronjobs (big ones) best practice
How you organize your application is entirely your choice. In general, you would use modules or packages when you expect re-use of your code in multiple applications, or your application is so big that you need segmentation.
Comment by
WanWizard
December 2013
permalink
Column ID in Ormauth User Permission?
You're on 1.8/develop? There has been a change in the table layout of the join tables. You have to run your Auth migrations again, migration 010_auth_fix_jointables will make the required changes.
Comment by
WanWizard
December 2013
permalink
AspectMock integration
I've discussed it in the team, and we don't see any objections to changing the way the autoloaders are enabled. I've made the required changes to the 1.8/develop codebase. Obviously, we won't add your composer and phpunit_boots…
Comment by
WanWizard
December 2013
permalink
Auth has_access with a not logged user, is possible?
No, that is not implemented at the moment, and very difficult to do due to the static nature of the classes. It is a design requirement for v2 though (we're working on Auth at the moment), where you can create multiple auth instances.
Comment by
WanWizard
December 2013
permalink
Cronjobs (big ones) best practice
well, if you have access to cron on localhost (to add the web trigger), I would definately use oil tasks instead of plain controllers. They run using php-cli, and don't use your precious webserver resources. You don't want to know how ma…
Comment by
WanWizard
December 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,417
Last Active
5:50PM
Roles
Administrator