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
Build a RESTful API
Yes I have one rest controller called API for all the methods, why would it be better to have multiple controllers? On the client side code you're going to need to point your request to the specific controller, but the routing in the controll…
Comment by
bperin
July 2012
permalink
How do I set up multiple fuel installs under the same server with different subdomains?
Harro Verton wrote on Wednesday 11th of July 2012: If you're not getting a fuel 404 error, then your rewriting doesn't work and index.php isn't called. You could test that using http://app1.domain.com/index.php/test which should wo…
Comment by
bperin
June 2012
permalink
Build a RESTful API
I also have an API that is used to access my site through a mobile app. As it stands now all i basically do is create unique session keys and compare them to saved keys in the database but I'm also looking into how to implement Oauth with my m…
Comment by
bperin
July 2012
permalink
How do I set up multiple fuel installs under the same server with different subdomains?
Yeah even when I do that I still run into the same problem. The welcome controllers work for each app but beyond that nothing is understood. For example I have a controller "test" for app1. The URL should be app1.domain.com/test/ I get a …
Comment by
bperin
June 2012
permalink
Fuel-Message
Nice, looks simple and easy. I was going to go through my code and write a similar alert handler but this seems better. Thanks.
Comment by
bperin
June 2012
permalink
Advanced twitter/fb like routing ?
What if I made my username list,or delete, or add, or edit etc..... To get to my profile you would follow the uri domain/users/list
Comment by
bperin
April 2012
permalink
Advanced twitter/fb like routing ?
Jume wrote on Wednesday 18th of April 2012: bperin wrote on Wednesday 18th of April 2012: One sorta solution I found is the following routing rule 'users/(:segment)' => 'users/profile/$1', And what seems to be the pr…
Comment by
bperin
April 2012
permalink
Pagination class - nightmare :(
to OP just use the custom class that was written for twitter, it works great. Jume, the pagination class doesn't use any post or get data, it just looks at the URI and finds the right segment for next & previous. I was having a hell of a t…
Comment by
bperin
March 2012
permalink
Sentry - Authentication Package
Wanted to say thanks for this package. Makes all the registration process / login simple and secure. I do have one question. If I want to add some variables to the session created by Sentry, how do I grab the right instance. Basically when I log a …
Comment by
bperin
December 2011
permalink
Is it possible to prefix the table name to database query result
Scott Horsley wrote on Friday 2nd of March 2012: @bperin, Is this using Query-Builder? If it is then the documentation states that you can provide an array containing column => alias for the select() portion. $query = DB::select(array('…
Comment by
bperin
February 2012
permalink
How can I alias subquery columns using the DB query builder
Perfect thanks.
Comment by
bperin
February 2012
permalink
Session flash message disappearing after redirect
So I figured out that it's the Sentry::logout method that is killing all the session vars but not sure how to tackle it without making changes to the sentry package.
Comment by
bperin
February 2012
permalink
Session flash message disappearing after redirect
Chris P wrote on Friday 10th of February 2012: I think you can set "flash_auto_expire" to false in Session config look here http://docs.fuelphp.com/classes/session/config.html Chris Tried that with no difference. That's why I…
Comment by
bperin
February 2012
permalink
How should my ajax controller return JSON object
Heres how the main parts of my ajax controller work, I override the router to check for a csrf token that should be coming with the input vars, if its not there nothing gets routed to a method. class Controller_Ajax extends Controller_Rest &#…
Comment by
bperin
January 2012
permalink
Sentry - Authentication Package
So I've been migrating over to this package here are a few things i've gotten caught up on so far. 1) The register method returns the activation hash, not an array that can be referenced by $user like the docs show 2) The hash that you ge…
Comment by
bperin
December 2011
permalink
Is anyone using jquery mobile w/ fuel?
Yeah I sorta figured it out. I thought I may need to extend the controller using rest but I don't. Even though jquery mobile is sending ajax requests you can pick them up as normal get/post vars in a normal controller. I was getting confused b…
Comment by
bperin
December 2011
permalink
Best Practices for User Profile Fields
I have a Model_User and Model_Profile. My user model is where I store the password, email, login stuff. I try to really only query that table for login info then a more basic Model_Profile that is basically just a user id, name, and things along t…
Comment by
bperin
November 2011
permalink
How do I make a task for a cronjob
I'm not using oil to run it. I guess the issue is I want to use fuel based php to write some scripts for cron to execute, but I dont know where I can put the files outside of the fuel file system and be able to leverage the fuel code if that m…
Comment by
bperin
November 2011
permalink
How do I make a task for a cronjob
I can get cron to run a straight php file named test.php within the tasks folder but I get the same class not found error located in fuel/app/tasks/test.php PHP Fatal error: Class 'DB' not found in /var/www/project/fuel/app/tasks/te…
Comment by
bperin
November 2011
permalink
Trying to use email package, getting exceptions
I took down everything an reinstalled the latest version and it seems to be working.
Comment by
bperin
November 2011
permalink
How do I make a task for a cronjob
Peter Wiggers wrote on Saturday 26th of November 2011: Brian Perin wrote on Saturday 26th of November 2011: PHP Fatal error: Class 'Fuel\Tasks\DB' not found in /var/www/project/fuel/app/tasks/updates.php on line 24 Error - Class …
Comment by
bperin
November 2011
permalink
Trying to use email package, getting exceptions
Fuel 1.1-dev
Comment by
bperin
November 2011
permalink
Can I use the session DB driver for my API
Actually both, I use my own hashing class now but willing to dump it.
Comment by
bperin
November 2011
permalink
Session destroy wont log out users
I changed all session getters/setters to static calls and its the same. This is probably a better method public function action_logout() { Session::delete('authenticated'); Session::delete('admin'); Sess…
Comment by
bperin
October 2011
permalink
REST Controller POST JSON
is there anything in print_r($_POST)
Comment by
bperin
September 2011
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