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
module in module folder got loaded without config.php
What I meant was that if you use a URI like /module/controller/method/params the routing engine will detect you're calling a module controller, and will auto-load the module for you. In all other cases where you need to access something in a…
Comment by
WanWizard
July 2013
permalink
Session flash dissapear after redirect
You can get anything out of the session, or only that? Which version of Fuel are you on? What if you use set() instead of set_flash()?
Comment by
WanWizard
July 2013
permalink
Here goes my fourth Framework in four days.
Hope it does too! If you have questions, just shout, or join IRC, it's pretty active. Happy coding!
Comment by
WanWizard
July 2013
permalink
Strange issue with Database_Connection on high-volume site
Glad you found the issue (and it's not the framework ;-)
Comment by
WanWizard
July 2013
permalink
Strange issue with Database_Connection on high-volume site
You can use Fuel without problems when you don't have mod_rewrite at your disposal. Only problem is that you'll have index.php visible in the URL (like http://example.org/index.php/controller/method). As to your error, I've never see…
Comment by
WanWizard
July 2013
permalink
Iterate and query, or joins?
If you setup your API properly, you can use HMVC requests you have your web frontend controller call your API controller to fetch the required data. You should return an array or object instead of json then, it saves you a bit of parsing. That will…
Comment by
WanWizard
July 2013
permalink
Iterate and query, or joins?
No, that's entirely up to you. What I meant was that you should not design an application where "/controller/method/parameter" returns a data structure in one case, an html webpage in another. Keep your API and your web frontend sepa…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Found it, but I don't see anything strange. I've setup a test application (using our app framework for which I've designed Auth/Opauth) in a similar folder structure (here "opauth/funding_funnel"). I've added this to …
Comment by
WanWizard
July 2013
permalink
Session flash dissapear after redirect
Ok, the file driver should not have a size restriction. Have you looked at the example? There is no redundant code in there, it just falls though, and ends with creating the view, no matter what happened before (initial load, reload on error, etc).
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
In your index.php, can you do a var_dump($_SERVER) when you do the initial request for your URL, and post that on http://bin.fuelphp.com (or email it to wanwizardfuelphp.com)? I can not come up with a scenario in which the FIRST segment will be see…
Comment by
WanWizard
July 2013
permalink
module in module folder got loaded without config.php
You don't need to "always_load" a module for it to work. If the routing engine determines that you are requesting a module resource, it will load the module automatically. You only need to "always_load" it when you need t…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
You should NOT define any paths anywhere, it should work automatically! If it works for the other strategies, but not for Google, then Opauth has a driver bug, which they have to fix. Please verify if you have the latest version of the driver, and…
Comment by
WanWizard
July 2013
permalink
config ngnix rewrite to fuelphp
I don't know, I've never used nginx. Perhaps you can pop into IRC (on freenode, channel #fuelphp), I'm pretty sure there are people present that use nginx.
Comment by
WanWizard
July 2013
permalink
Iterate and query, or joins?
I don't understand that. ;-) Either you have an API, which returns a block of data in some form (json or other), or you have an interactive application that returns html to be rendered in a browser. Ideally you should not mix the two, and you…
Comment by
WanWizard
July 2013
permalink
config ngnix rewrite to fuelphp
Does this help? https://gist.github.com/lmestre/1258980
Comment by
WanWizard
July 2013
permalink
ORM side effects
There is only one place in the framework that runs htmlentities, which is the View. Since this is an object, all variables containing this object are actually references to the same object. So if one changes, they all change. So you need to check …
Comment by
WanWizard
July 2013
permalink
Session flash dissapear after redirect
I mean what do you use to store the session data in, what have you configured as driver in your session.php configuration file? If that says cookie, your storing all session data in the cookie, and that has a limit of 4Kb. With luck you can get 2 v…
Comment by
WanWizard
July 2013
permalink
Autoloader with ViewModels
No. The autoloader uses the 'classes' folder as the root of the cascading file system. So classes\view\base\viewmodel.php would contain a class called View_Base_Viewmodel. Or a class Base_Viewmodel in the namespace "\View". Or a…
Comment by
WanWizard
July 2013
permalink
Session flash dissapear after redirect
Are you using cookies for session storage? If you, so probably have hit the size limit of the cookie, validation objects are quite large and should not be stored in the session.
Comment by
WanWizard
July 2013
permalink
Input::get() and $_GET is being populated by the URL segment.
What I do notice: in the plain request, I see: "QUERY_STRING" => "/api/flooms.html" in the other one "QUERY_STRING" => "/api/flooms&q=foo" , Why does one have an extension, and the other …
Comment by
WanWizard
July 2013
permalink
Input::get() and $_GET is being populated by the URL segment.
New disk, setup from scratch, now about 90% usable... ;-) Most important, my webserver and DB, and all my virtual hosts are back up! I've ran the tests with the two $_SERVER dumps you mailed me, and that is not causing it. So it's PHP…
Comment by
WanWizard
July 2013
permalink
Opauth with GoogleStrategy
Fix was pushed yesterday. As it also contains fixes in the framework (https://github.com/fuel/core/commit/a1ac30d02ff716375ee9093d397c595945a7b152), you should upgrade to 1.7/develop to be able to use this fix now, or wait for the next official rel…
Comment by
WanWizard
July 2013
permalink
Using classes in public folder php files..?
if it's plain HTML, and only contains some php to aid the static pages, conversion would be very simple.
Comment by
WanWizard
July 2013
permalink
Using classes in public folder php files..?
I can't comment, I don't know the non-Fuel application. It depends on what that PHP code does... Some Fuel helper classes can be used stand-alone, but it means you have to load them manually (you don't have the Fuel autoloader), and …
Comment by
WanWizard
July 2013
permalink
Iterate and query, or joins?
Restful controllers should extend Controller_Rest. Ideally you don't mix them with frontend functionality (altough you could using Controller_Hybrid), also think about proper versioning of your API, and about consistency in your responses. Con…
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,398
Last Active
8:42PM
Roles
Administrator