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
External HTTP Request API Client?
Muzikman wrote on Sunday 15th of July 2012: Maybe a good "first" project with Fuel would be to use the Fuel core to build the API calls instead of wrapping this native PHP class. Not sure what you mean by this. Muzikman wrote on Sun…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Muzikman wrote on Sunday 15th of July 2012: I gotcha. That's why I need to pass the "driver" name of the main class as a parameter to forge. Basically, "forge" an instance of the 'curl" via the main class call…
Comment by
WanWizard
July 2012
permalink
Fuelphp support for nested models in Fieldset class?
I don't think this is the right way to approach this. If you're using ORM, it is better to use the built-in validation feature of the ORM model, and just validate every model instance individually.
Comment by
WanWizard
February 2012
permalink
Ninjauth with Twitter
Perhaps you can ping philsturgeon, he's the author of all three packages...
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Muzikman wrote on Sunday 15th of July 2012: I am new to the concept of a "driver" when it comes to frameworks. Can you give me a definition in your own words that would help clarify it a bit for me? In normal circumstances a forge() re…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Muzikman wrote on Sunday 15th of July 2012: Ahh.... Makes perfect sense. How would I go about adding curl constant, etc? Through an array of params? One instantiated you can use set_option() to define curl options: // example from the login m…
Comment by
WanWizard
July 2012
permalink
Ninjauth with Twitter
Are your Ninjauth, Oauth and Oauth2 packages up to date? I just added the twitter key and secret to our Depot project's ninjauth config file, and the twitter login worked immediately. You can find the Depot login controller here.
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Correct. reponse() will return a standard FuelPHP Response object. You can access the status using $response->status, you can get any HTTP headers returned using $response->get_headers(), and the response payload using $response->body(). Y…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
A lot of the core classes with with driver classes behind the scenes, either to create instances in a multiton pattern, or to provide the correct driver based on config or the parameters of the forge request. Session, File and Config are similar in…
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
Which piece of code? \Request::forge($url, 'curl') loads the Request_Curl driver class...
Comment by
WanWizard
July 2012
permalink
External HTTP Request API Client?
I've created an issue on github for the missing documentation.
Comment by
WanWizard
July 2012
permalink
Custom routes for modules.
Routes in a module routes.php all have to start with the module name (on the left hand side). If not the module loader will add it. All other routes should be defined in your app/config/routes.php.
Comment by
WanWizard
July 2012
permalink
adding legacy php library to fuel app
If they are files that just contain procedural functions, you will have to install them in the global namespace to avoid the namespace issues. Which means somewhere in APPPATH. To load them the best option would probably be a require() in your app …
Comment by
WanWizard
July 2012
permalink
Error: Could not find pakage
I don't have any, other then debugging the oil Package class. It works fine here: [hverton@catwoman] $ oil package install cart Downloading package: git://github.com/fuel-packages/fuel-cart.git remote: Counting objects: 227, done. remote: Comp…
Comment by
WanWizard
July 2012
permalink
update a select field with ajax
http://docs.fuelphp.com/general/controllers/rest.html. Use the standard jquery calls to perform the ajax request.
Comment by
WanWizard
July 2012
permalink
Error: Could not find pakage
Looks ok. You don't need the "fuel-" prefix, so it should be "oil package install cart master". It does an fopen to check if the package exists, maybe your PHP installation has stream-wrappers disabled so the fopen fails? I…
Comment by
WanWizard
July 2012
permalink
Controller_Template and ViewModel together?
Ah, yeah, set() requires a key-value pair. Alternative: $this->template->content = ViewModel::forge('message/index'); $this->template->content->set('messages', Model_Message::find('all')); $this->temp…
Comment by
WanWizard
July 2012
permalink
update a select field with ajax
Create a REST controller (a controller extending Controller_Rest), call that though ajax and have it return json data to update your page.
Comment by
WanWizard
July 2012
permalink
Controller_Template and ViewModel together?
Use $this->template->content = ViewModel::forge('message/index')->set($data); You can use the same methods on a Viewmodel as on a view.
Comment by
WanWizard
July 2012
permalink
Accessing images from css
Yes, in the 1.3/develop repo. Probably only Asset_Instance.
Comment by
WanWizard
July 2012
permalink
Fuelphp 2.0
No, packages are considered a core extension, they should not contain front-end code. Use modules instead.
Comment by
WanWizard
July 2012
permalink
Fuelphp 2.0
The architecture for 2.0 is quite different from 1.x. You can find some blog posts about this topic here: http://fuelphp.com/blog/category/2.0-development, and a bit more in-depth explanation here: https://github.com/fuelphp/fuelphp/wiki For migrat…
Comment by
WanWizard
July 2012
permalink
Accessing images from css
There is a bug in 1.2.1. that will produce the double slash on Windows. It has been fixed in 1.3/develop.
Comment by
WanWizard
July 2012
permalink
Fuel ORM and InnoDB Cascade Delete One-To-One
That is correct from an ORM point of view. From a database point of view, it's a child table with an FK pointing to the parent table. Which is the same implementation as for a one-to-many. It is the ORM that will enfore the 'one' in …
Comment by
WanWizard
July 2012
permalink
Error 1364, field 'last_login' doesn't have a default value
I've corrected the SQL in the 1.3 docs.
Comment by
WanWizard
July 2012
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,374
Last Active
7:56AM
Roles
Administrator