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
Problems with relations : implode_pk() exception
Also, relations always have to be defined both ways, and it looks like your Model_Translation doesn't have a belongs_to relation back to Model_Folder?
Comment by
WanWizard
June 2014
permalink
Problems with relations : implode_pk() exception
Can you change your ORM installation to 1.8/develop, and see if it still is a problem?
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
Line 97 is primarily there to avoid loops. Since you have moved the controller to a namespace, check if \Request::active()->controller still contains "Controller_Admin", and not "Admin\Controller_Admin" which makes the if fail…
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
You are sure you're on the latest Fuel version? This sounds like an old bug with the admin generation template. See https://github.com/fuel/oil/blob/1.8/develop/views/admin/orm/controllers/admin.php
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
admin/admin/index maps to namespace Admin; class Controller_Admin { public function action_index() { } } in app/modules/admin/classes/controller/admin.php. Is that correct? Then it redirects to "admin/login", which should t…
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
Obviously, when you move the code into a module, by default the URI changes, so that means you'll have to look at redirects too. It's difficult to see from there where it goes wrong, but the Request class logs every request in development…
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
p.s. it is good practice to always prefix your classes, even when you are already in the global namespace. It makes these moves a lot easier, and makes PHP a bit faster since it will not have to search namespaces for a match.
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
You want to move the entire app folder, or just parts of it? A module has exactly the same structure as the app folder, they only difference is the namespace. So it also contains classes, views, etc If you move a controller, all you have to do is:…
Comment by
WanWizard
June 2014
permalink
404 when going anywhere but index
Cool! Glad you've got the problem sorted.
Comment by
WanWizard
June 2014
permalink
404 when going anywhere but index
Laravel uses exactly the same rewriting rules, so if you think that is the solution, by all means. If you get an Apache 404 error and not a Fuel one, it means your request doesn't even get to Fuel, so you need to debug the Apache setup. Are th…
Comment by
WanWizard
June 2014
permalink
rest_controller post
That is because it's not posted as multipart/form-data, so PHP can not parse it as POST variables. Input::json() parses php:://input directly.
Comment by
WanWizard
June 2014
permalink
404 when going anywhere but index
I wouldn't know why it doesn't work either. We deploy on a daily basis, and I've never seen the default htaccess not to work...
Comment by
WanWizard
June 2014
permalink
oil create blog :(
Guessed correctly the first time... :-)
Comment by
WanWizard
June 2014
permalink
oil create blog :(
I don't do Windows either... ;-) You need the php.exe in your path, see for example http://stackoverflow.com/questions/12870880/run-php-file-in-windows-cmd. Alternatively you could create an oil.cmd file, which does something like c:\your\pa…
Comment by
WanWizard
June 2014
permalink
oil create blog :(
I don't do Apple, so I don't know how it works. But a segmentation fault means the code tries to access memory that doesn't belong to it. Which is either a bug in the the binary (which you could solve by trying a newer or older vers…
Comment by
WanWizard
June 2014
permalink
Password Change feture not working
It does: if (empty($values['old_password']) or $current_values->get('password') != $this->hash_password(trim($values['old_password']))) { throw new \SimpleUserWrongPassword('Old password is invalid…
Comment by
WanWizard
June 2014
permalink
404 when going anywhere but index
Why would you need a Rewritebase? If you control the webserver yourself, set the virtualhost documentroot to the public folder, and off you go? Non standard setups will lead to complicated rewrite rules, which you should avoid at all costs, and si…
Comment by
WanWizard
June 2014
permalink
Password Change feture not working
The change_password() method catches the underlying exception, so the exact cause is lost. Use Auth::instance()->update_user(array('old_password' => $old_password, 'password' => $new_password)) and you'll get a m…
Comment by
WanWizard
June 2014
permalink
Fuelphp 2.0 update problem
Thanks for confirming that.
Comment by
WanWizard
June 2014
permalink
404 when going anywhere but index
Why have you replaced the .htaccess that is part of the framework distribution by your own version? Chances are your hoster doesn't use a plain vanilla apache setup, but uses nginx, php-fpm, or some cgi version. All of them requiring differe…
Comment by
WanWizard
June 2014
permalink
The below routing works but now I cannot access my Admin module
The problem is that there is no automatic way do create a single route that maps /about to a page controller, and /admin to something else, without either one of the solutions I mentioned. You should be able to access URI's like /admin/users/c…
Comment by
WanWizard
June 2014
permalink
How do I switch to \Orm\Model_Soft
If you mean generate, no. If you mean a migration for a schema change, yes.
Comment by
WanWizard
June 2014
permalink
The below routing works but now I cannot access my Admin module
If you're using a catch-all route like that, the only way to make this work is to create routes for all other one-segment URI's. You could hack your way around by using the 404 route. Don't define the route in the other post, so /adm…
Comment by
WanWizard
June 2014
permalink
oil create blog :(
There seems to be an issue with your git binary. Perhaps re-install it?
Comment by
WanWizard
June 2014
permalink
oil create blog :(
Not a Fuel or a PHP issue. A segmentation fault is a problem in a binary, in this case it looks like the git binary. So you need to sort that out.
Comment by
WanWizard
June 2014
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
3:49AM
Roles
Administrator