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.
Peter
Discussions
13
Comments
78
Activity
Generate form from validation rules
Got it: foreach($val->field() as $field) { var_dump($field->name); }
Comment by
Peter
November 2011
permalink
HTML Meta Data
You could store it in a database.
Comment by
Peter
November 2011
permalink
How to change path to views?
First, in your case, shouldn't: \Fuel::add_path(DOCROOT . $current_theme, true); be: \Fuel::add_path(DOCROOT . 'themes' . DS . $current_theme, true); ? Anyway, I don't know if there is a way to add your path without th…
Comment by
Peter
November 2011
permalink
question about pagination
Harro Verton wrote on Monday 24th of October 2011: You will always need to run two queries, one to get the total count, and one to get the records of the current page. Not necessarily, you can use: SELECT SQL_CALC_FOUND_ROWS * FROM table LIM…
Comment by
Peter
October 2011
permalink
passing table results in data array to view not working
Change: DB::select('message')->from('comment')->as_assoc()->execute(); to DB::select('message')->from('comment')->execute()->as_array();
Comment by
Peter
October 2011
permalink
Fuel 1.1 Release Date
If I were you I'd wait for 1.1 stable. I'm using Fuel since the first (beta) release and I really love it (but I can only compare it with CodeIgniter). If you can't wait I think it's safe to use the upcoming 1.1 beta.
Comment by
Peter
October 2011
permalink
Build query with Query Builder but do not execute
Found it by searching in the core... compile() is the function I need.
Comment by
Peter
October 2011
permalink
Fuel Table Sort package
I'd suggest to use http://tablesorter.com/docs/#Demo for "small" tables (because you're loading all the results in one time)
Comment by
Peter
October 2011
permalink
Problem running a query using the db class
$result = \DB::query($query, \DB::SELECT)->execute()->as_array();
Comment by
Peter
September 2011
permalink
casset - an alternative asset class which supports minifying scripts, cleaner syntax
Good work Antony! I'm using the casset package in several websites now.
Comment by
Peter
June 2011
permalink
Auto-quote by where statement in DB Class
Use DB::expr()
Comment by
Peter
September 2011
permalink
Okay, Fuel runs. now where do I start
http://net.tutsplus.com/tutorials/php/getting-started-with-the-fuel-php-framework/
Comment by
Peter
August 2011
permalink
Routing: replace hyphens with empty string in method/actions
I have the same question and I'm very curious for the solution!
Comment by
Peter
August 2011
permalink
Exclude a method from $this->template-> | use $this->response->body instead
Harro Verton wrote on Sunday 7th of August 2011: Normally, you would use a public base controller for unauthenticated output, and a different one for authenticated output. A login page is per definition unauthenticated, so it's controller wo…
Comment by
Peter
August 2011
permalink
Exclude a method from $this->template-> | use $this->response->body instead
Looking for the solution too. The "solution" I use now is to create a separate controller for the page which you need to exlude from the normal template and change the template for that controller, but there must be a more simple way.
Comment by
Peter
August 2011
permalink
Error 2048 - Declaration of before() should be compatible with that of Controller_Template::before()
Thanks, I had the same problem.
Comment by
Peter
August 2011
permalink
Detecting the Action Segment
\Request::active()->action
Comment by
Peter
August 2011
permalink
One-to-one relations, but reversed
A little off topic: I've always learned to try not to use one-to-one relations. If you think you need that relation, you can just add extra columns in the main table.
Comment by
Peter
July 2011
permalink
Send variables from base controller to normal controller (and back)
Thanks, so simple! Still learning PHP5...
Comment by
Peter
July 2011
permalink
Changing Database and Environment settings
Frank Bardon wrote on Monday 25th of July 2011: Use SetEnv in your .htaccess file. And don't replace it on the server And if you don't know how to do that: SetEnv FUEL_ENV development
Comment by
Peter
July 2011
permalink
casset - an alternative asset class which supports minifying scripts, cleaner syntax
Very good work canton7! I have another idea, maybe it's useful to make a function which only returns the path to a specific file, like the img_asset_url() function in the CI asset helper: http://codeigniter.com/wiki/Asset_Helper/ It's use…
Comment by
Peter
June 2011
permalink
Escape data in query
Harro Verton wrote on Tuesday 12th of July 2011: Not documented yet, but you might be able to do $first = 'John'; $last = 'Doe'; $query = DB::query("SELECT * FROM table WHERE first_name = :first AND last_name = :last&q…
Comment by
Peter
July 2011
permalink
casset - an alternative asset class which supports minifying scripts, cleaner syntax
Thanks for this package, it's really useful for my website. But I have a question. I'm using uploadify, which contains CSS, JS, images and some other files. Where is the best way to put these files, and use it as a group in casset? Off co…
Comment by
Peter
June 2011
permalink
Best way to retrieve method parameters
You can use params: http://fuelphp.com/docs/general/routing.html (heading Advanced Routing). Then you can request for example a user_id variable from the URI this way: $this->param('user_id')
Comment by
Peter
June 2011
permalink
casset - an alternative asset class which supports minifying scripts, cleaner syntax
Antony Male wrote on Wednesday 15th of June 2011: My bad, that was half a documentation omission since adding in namespacing, and half forgetting that people might want to specify un-namespaced files in groups in the config file. I've update…
Comment by
Peter
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
Peter
Joined
June 2011
Visits
0
Last Active
July 2012
Roles
Member