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
Unable to connect to MS SQL DB Using PDO DBLib within a controller.
It might have something to do with the (version of) the library that PDO uses to connect to MSSQL? Or some server setting that is incompatible? If you google for "Error: 17832 Severity: 20" you get quite a lot of hits, also from non-PHP e…
Comment by
WanWizard
July 2014
permalink
Error deleting
And it doesn't work recusive. So it will not delete the childeren's childeren, unless that relation also has a cascade_delete defined on it.
Comment by
WanWizard
July 2014
permalink
Error deleting
No, you define it on the relation. So when you delete the parent, it will delete associated children. If you don't want that, it will have to reset the foreign key of all related childeren to NULL (since you are deleting the record the foreign…
Comment by
WanWizard
July 2014
permalink
Error deleting
From the looks of it, your $xclasses object contains new related objects. So ORM will insert that first. The fact that you delete a parent doesn't directly mean you want to delete all related objects too. You need to enable cascade_delete on …
Comment by
WanWizard
July 2014
permalink
Error deleting
Pretty obvious. Your table schema defines classes_id as a required field (NOT NULL), and your value array for the insert doesn't contain a value.
Comment by
WanWizard
July 2014
permalink
Migrations not working after generating magic migration
No problem, glad you've got it sorted.
Comment by
WanWizard
July 2014
permalink
Migrations not working after generating magic migration
Generated migrations don't do anything. Only a class file is generated with a DBUtil call, nothing more. I can't see how that would influence the way migrations run. Can you dump your migration table, add it to a zip together with the mig…
Comment by
WanWizard
July 2014
permalink
Migrations not working after generating magic migration
Your database migration table and the contents of the migrations config file needds to be in sync, so deleting one of them can cause all kinds of issues. Possible reason for a migration not being picked up, is an incorrect class name (= doesn'…
Comment by
WanWizard
July 2014
permalink
Clear Input::post after submit
Then your code is wrong. It is best practice to redirect away with a 'success' messsage of some sort after processing a POST. If only to prevent people from reloading the page (which with your code will cause a second post request with th…
Comment by
WanWizard
July 2014
permalink
Rest API trow blank page
set your log level to L_ALL, and check the log. Any error messages?
Comment by
WanWizard
July 2014
permalink
URL appearing in GET array
Thanks. If we know what caused it, we can add it to the docs, or change the framework or the rewrite rules to deal with it.
Comment by
WanWizard
July 2014
permalink
URL appearing in GET array
Very odd. I have a Synology NAS here that I use for test purposes, since it runs both Apache and Nginx with FCGI, and that exact line works fine here. So there must be something non-standard in your server setup somewhere...
Comment by
WanWizard
June 2014
permalink
URL appearing in GET array
So you're not using the htaccess that is supplied by the framework? Because that has built-in support for all different apaches setups, including FastCGI.
Comment by
WanWizard
June 2014
permalink
CSV to Array giving me nothing
p.s. For 1.8/develop CSV import/export has been rewritten, and it gives more granular configuration options.
Comment by
WanWizard
June 2014
permalink
CSV to Array giving me nothing
There are a "million" ways on how to format a CSV file, so you need to make sure your config matches the definition of the CSV. And it doesn't support all those millions, so you could have bumped into an incompatible format.
Comment by
WanWizard
June 2014
permalink
URL appearing in GET array
Nginx? Sounds like it, with an incorrect redirect.
Comment by
WanWizard
June 2014
permalink
Create REST API
it is good practice to separate your API from your interactive part of the website. Your API also need to follow different design rules, for example towards versioning, that makes mixing functionality difficult. I can recommend Phil's book if …
Comment by
WanWizard
June 2014
permalink
Issue with new view working in development but coming up with error 404 when made live
No problem, glad you've got it sorted.
Comment by
WanWizard
June 2014
permalink
SimpleAuth - multiple logins
No. Auth keeps a login hash internally, and rejects a re-login via Auth::check() if the hash doesn't match. This check is disabled when 'multiple_logins' is set to true. This is checked in the auth\login\simpleauth.php class, in th…
Comment by
WanWizard
June 2014
permalink
Issue with new view working in development but coming up with error 404 when made live
You keep confusing me. The location of the view is not relevant, the location of the controller, and the code in it is. Missing views don't generate a 404, missing controllers do. Also, the name/location of the view isn't relevant, your …
Comment by
WanWizard
June 2014
permalink
Issue with new view working in development but coming up with error 404 when made live
Ok, then providing you don't have any routing that blocks access to this contoller, /wtools or /wtools/index shouold just work. There is nothing in your Controller_Auth that throws a NonFoundException? If not, I don't see any reason why i…
Comment by
WanWizard
June 2014
permalink
Issue with new view working in development but coming up with error 404 when made live
eh, views don't contain methods? You mean you have a controller Controller_Wtools in wtools.php in app/classes/controller?
Comment by
WanWizard
June 2014
permalink
Multi Template
Using native Fuel, there are a few options. You can use "nested Views" (see http://docs.fuelphp.com/general/views.html) that works with View objects online. You can also use the Theme class, which works with partials for the different se…
Comment by
WanWizard
June 2014
permalink
Multi Template
The template is just a regular view. public function action_something() { $this->template = \View::forge('template_something'); .... }
Comment by
WanWizard
June 2014
permalink
Trying to perform oauth2 code => acesss_token exchange using Request class, getting redirects
Fuel does that neither. There is no redirect in the Curl Request class. Your log should tell you which URI were requested, and a tool like Live HTTP headers (in FF) can tell you exactly which requests your browser has executed. Check that and you&…
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
12:00AM
Roles
Administrator