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
Captcha
There is a reCaptcha package already
Comment by
bperin
February 2011
permalink
Pagination problem
Harro Verton wrote on Thursday 22nd of September 2011: The Pagination class doesn't do anything intelligent when constructing the URL's. If you want the page to be segment 4, you need to make sure that 'pagination_url' contain…
Comment by
bperin
September 2011
permalink
Payments Package?
I'm also interested in this
Comment by
bperin
August 2011
permalink
Auto checking CSRF Token
@wanwizard in terms of autochecking, whenever a value is checked a new token is generated correct? Therefore if autoload is set to true then check_token will run. But if later on in the script you have a manual check it will fail because a new toke…
Comment by
bperin
September 2011
permalink
Is there a routing solution for this?
Jelmer Schreuder wrote on Thursday 1st of September 2011: It's run through preg_replace, thus this should work as long as your ids are numeric: 'users/([0-9]+)' => 'users/view/$1' Actually I jumped the gun ther…
Comment by
bperin
September 2011
permalink
A proposal for caching ORM queries
How do you go about profiling memory usage & speed?
Comment by
bperin
August 2011
permalink
Can't get memcached up and running
I ended up just changing the fuel cache class to use memcache. The methods for Memcached and Memcache are pretty much identical so it was just a few lines to change. Not an ideal solution, but I don't want to install 3rd party php rpm's t…
Comment by
bperin
August 2011
permalink
OpenID authentication driver
I've never used openID, kinda stuck on my own authentication system but would be very interested in trying this out. I'll keep an eye on your progress. In terms of your problem can you do something like write a method that will echo out t…
Comment by
bperin
August 2011
permalink
Getting DB results as read only exception from DB::select
A Huzz wrote on Thursday 18th of August 2011: Have a look at this thread http://fuelphp.com/forums/topics/view/3901 Yeah, before I tried adding the method as_assoc() to the query which still gave the warning, however if I do function get_ph…
Comment by
bperin
August 2011
permalink
ORM: find('all') returning error
Jay Arias wrote on Wednesday 17th of August 2011: I get a DUMP of all the info. I can't select regular things. that looks fine to me you have an array with 1 entry. The only accessible part of the ORM model is _data You traverse each one …
Comment by
bperin
August 2011
permalink
ORM: find('all') returning error
You dont need to set the data into an array, you should be getting an array of objects back. Try $posts = Model_Post::find('all'); var_dump($posts); //should be an array of post objects //traverse these objects like so foreach($posts…
Comment by
bperin
August 2011
permalink
Can't get memcached up and running
Gotcha, I also figured out that centos 5.6, my os, removed the pecl and memcache packages which is why I was having so much trouble.
Comment by
bperin
August 2011
permalink
HTTP/HTTPS redirecting in Fuel
It sounds like a job for Apache IMO, set mod rewrite rules for specific pages that need to be encrypted.
Comment by
bperin
August 2011
permalink
Odd ordering result with ORM related query
Hey sorry it took me a while to get back thanks for responding, I made sure to pull the lastest ORM package and rewrote the code and things seem to be working now, I may have been passing a null variable into the offset method which was most likely…
Comment by
bperin
July 2011
permalink
global controller question like cakephp has
Controllers can extend other controllers, so the way I do it is I have a Controller_Session that extends Controller class Controller_Session extends Controller { /** * @var string page template */ public $template = 'maint…
Comment by
bperin
July 2011
permalink
How would I break execution of a rest request if I have an invalid session key
Ok, I overrode the router() method and got the functionality i was looking for. thanks.
Comment by
bperin
July 2011
permalink
CSRF logic flaw?
Harro Verton wrote on Thursday 14th of July 2011: Currently, the CSRF code only supports a single form at the time (a shortcoming other frameworks have as well), you'll have the same issue if you have multiple forms on a page, or multple pag…
Comment by
bperin
July 2011
permalink
Can we discuss the different ways of fetching models and the security implications for each
Hmm, ok that clears some things up, but extending on my question about how inputs are handled before they're put in the database lets take for example this block of code that views a users profile public function action_view($id = null) &am…
Comment by
bperin
July 2011
permalink
ErrorException [Warning]: in_array()... when doing a foreach that updates data on database
Have you tried a different approach to the logic and update the database all at once? This code most likely will not scale well, you really shouldn't have an sql query in a foreach loop. Also the email class seems to be set up to send one emai…
Comment by
bperin
July 2011
permalink
Having trouble relating has_many and belongs_to
Harro Verton wrote on Friday 1st of July 2011: Think I understood you incorrectly. If your model is called Model_User_Network, and is in app, it must be in a file called network.php, stored in app/classes/model/user in order to be autoloaded. …
Comment by
bperin
July 2011
permalink
Having trouble relating has_many and belongs_to
Harro Verton wrote on Friday 1st of July 2011: No, not a bug. If the model you relate to is in another namespace, then define the namespace. protected static $_has_many = array( 'networks' => array( 'model_to' =>…
Comment by
bperin
July 2011
permalink
Having trouble relating has_many and belongs_to
Oh I see. Thanks!
Comment by
bperin
July 2011
permalink
Having trouble relating has_many and belongs_to
**Updated If I move the model Model_User_Network into the same directory namespace as Model_User, and rename the model it will work fine. Is this a bug? If not how do you work around this.
Comment by
bperin
July 2011
permalink
PDO exception
The DSN variable is null when the connection is trying to be made on https://github.com/fuel/core/blob/master/classes/database/pdo/connection.php#L72 I can enter the params manually like $this->_connection = new \PDO("mysql:host=localhost…
Comment by
bperin
June 2011
permalink
new to frameworks, some questions about structure and session control
Great thanks for the help
Comment by
bperin
June 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