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.
bperin
Discussions
46
Comments
75
Activity
Where do I add a non fuel git submodule to my project, what do I need to do to make it work?
So I tried adding the namespace \Autoloader::add_namespace('Parse', APPPATH . 'vendor' . DS . 'parse-php-sdk' . DS . 'src' . DS . 'Parse' . DS, false); But the classes can't be found. For examp…
Comment by
bperin
September 2015
permalink
Where do I add a non fuel git submodule to my project, what do I need to do to make it work?
Actually I think it was still running from the composer version. there are 2 vendor folders, which ones does it go in? fuel/vendor or fuel/app/vendor ?
Comment by
bperin
September 2015
permalink
Where do I add a non fuel git submodule to my project, what do I need to do to make it work?
Thanks this worked perfectly!
Comment by
bperin
September 2015
permalink
Trying to perform oauth2 code => acesss_token exchange using Request class, getting redirects
I suppose, but to me it seem like when I execute the curl request fuel takes over and since it's an external address the router decides to forward to the 404 page, but that's not how pure php based curl would work.
Comment by
bperin
June 2014
permalink
How do I load a vendor class in a task
Thanks for the replies, yeah what ended up working was putting namespace first, and I dont know how I didn't know I can just use the full class path to call the class like @hrabbit suggested.
Comment by
bperin
May 2014
permalink
Admin scaffolding edit method wants to call a static method validate on model
The scaffold doesn't generate a new model, at least it didn't for me and I wouldn't want it to overwrite the files anyways. So basically there shouldn't be any input validation in the controller? Just set the model properties to…
Comment by
bperin
April 2014
permalink
Problem removing index.php from url
I figured it out, in the main apache config I needed to change AllowOverride None to AllowOverride All which allowed apache to pick up on the htaccess file. But yeah a better approach would be to move these rules into the virtual directory in the ap…
Comment by
bperin
April 2014
permalink
Custom Observer throwing error, not found
Ok i sorta got it to work but I had to manually edit the Orm bootstrap file to add the class 'Orm\\Observer_Gcm' => __DIR__.'/classes/observer/gcm.php', and put the actual observer with the others in the Orm package... …
Comment by
bperin
November 2013
permalink
Is there a way to hardcode REST route variables
So would you still put the ID of the object in the URI segment or have it as a $_POST variable
Comment by
bperin
October 2013
permalink
Is there a way to hardcode REST route variables
Yeah I thought about doing that too, ill try it out. As per your suggestion I've been trying to follow the design of other popular api's I wish there was a standardization. So for the above example it would be a POST request but some para…
Comment by
bperin
October 2013
permalink
Security js_fetch_token not returning anything
Yeah I grab it within an ajax handler but when I changed the config setting security.csrf_expiration to an integer > 0 it works
Comment by
bperin
August 2013
permalink
Can someone show a working sample of the new REST auth method
Yup that did it. I've never knew you could call a method like that
Comment by
bperin
July 2013
permalink
Can someone show a working sample of the new REST auth method
check out this code, I'm basically pulling it from the docs with an added auth method class Controller_Test extends Controller_Rest{ protected $format = 'json'; protected $auth = 'warden'; public function be…
Comment by
bperin
July 2013
permalink
Can someone show a working sample of the new REST auth method
yeah I can see it in the log, would the before() and after() methods change anything?
Comment by
bperin
July 2013
permalink
Can someone show a working sample of the new REST auth method
Yeah I keep getting {"status":0,"error":"Not Authorized"} regardless of the auth method public function warden() { \Log::debug('running auth check'); return true; } So I…
Comment by
bperin
July 2013
permalink
fuel threads - AzaThread port
I've been toying with this package but can't quite seem to get it to work, i'm trying to run an async task in a controller, i think this should be able to do it. I created a class that extends thread in the pkgpath class Sleep extends…
Comment by
bperin
March 2013
permalink
Return response in Before Method in REST Controller
I was looking at your solution and wanted to show how I did it. Basically I have a rest controller named main which handles all of the leg work but I want to do some authentication before any requests are routed. I do this by setting a bool propert…
Comment by
bperin
March 2013
permalink
Fuel Cloud Storage Package
I followed the directions, but I keep getting an error ErrorException [ Error ]: require(): Cannot redeclare class cf_authentication which is the line that tries to include the cloudfiles php file require APPPATH.'vendor/omissis/php-cl…
Comment by
bperin
February 2013
permalink
Getting a primary key error trying to create a Model
I removed the relationship from Model_Facebook and still get a PK change error.
Comment by
bperin
December 2012
permalink
Getting a primary key error trying to create a Model
Well user_id is an indexed key in Model_Profile. Heres another odd thing. The error is being thrown when I try to save the model but if I look in the database I can see the record created. Here are the models class Model_Profile extends \Orm\Model {…
Comment by
bperin
December 2012
permalink
Getting a primary key error trying to create a Model
is_new() dumps bool(true)
Comment by
bperin
December 2012
permalink
Getting a primary key error trying to create a Model
No there a string integer there I just removed it to post here. Does it matter if id isn't an actual PK on the database?
Comment by
bperin
December 2012
permalink
Getting a primary key error trying to create a Model
Fuel 1.3 var_dump is as follows. is object(Model_Facebook)#35 (9) trying to force the id as 35 possibly? I know I can work around this by just adding an explicit facebook_id column to the table and use id normally but want to figure this out. …
Comment by
bperin
December 2012
permalink
Twiiter Bootstrap Package
Looks good, I'll definitely use the form class. thanks
Comment by
bperin
August 2012
permalink
Can I decrypt a string encrypted in javascript with crypto-js in fuel and vice versa?
Harro Verton wrote on Tuesday 31st of July 2012: The Crypt class uses base64_encode()/decode() to make sure the crypted result is a readable string that can be manupulated. So after encrypting your code must base64_encode() it using the same rule…
Comment by
bperin
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
bperin
Joined
June 2011
Visits
61
Last Active
August 2016
Roles
Member