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
8243
Activity
Read only query
You can't with ORM. With DB, you'll have to wrap the IF in a DB::expr(), to avoid escaping issues. As for the result, if you do a normal execute(), the DB result class returns direct driver results, for example in case of the MySQLi drive…
Comment by
WanWizard
October 2012
permalink
Forms, Fieldsets, ORM and tags
The Form class is a helper class to provide the different HTML form elements. The Fieldset class is a class to generate input forms including validation based on a set of fieldnames. It has nothing to do with the HTML tag of the same name. So by de…
Comment by
WanWizard
October 2012
permalink
Getting a users choice in a multiple choice poll
There's so much code and logic in here I would seriously think about using a Viewmodel. Would keep your view simple and clean, and use the viewmodel to convert the data to a unified structure you can easily work with in the view.
Comment by
WanWizard
October 2012
permalink
Filter Output
There's a lot wrong with this forum software, working on it. that's an option, or alternatively $this->template->content = View::forge('customers/view_single')->set('note' => Markdown::parse('MARKDOWN&…
Comment by
WanWizard
October 2012
permalink
[Package][DbAcl] Help needed to understand functionality.
Moved to the 'code share' forum, this question is not related to FuelPHP's Auth package.
Comment by
WanWizard
October 2012
permalink
Getting a users choice in a multiple choice poll
Assuming $dates in your view is the result of a find(), you can include the related response in the result. Then $d->response will be an array with all responses for that date. You'll have to loop over that, and when the 'user_id'…
Comment by
WanWizard
October 2012
permalink
Filter Output
Pass the parsed string to the view with encoding disabled. $view->set('markdown', Markdown::parse($string), false); Or pass the markdown to the view, and do the parsing in the view.
Comment by
WanWizard
October 2012
permalink
Frustrating problems with connecting to the database
Environment names are lowercase, yes. This has already been corrected in the current dev docs.
Comment by
WanWizard
December 2011
permalink
Check if the operation succeeded
yes.
Comment by
WanWizard
October 2012
permalink
Check if the operation succeeded
If it's a database exception, yes. You could catch \Exception instead, and then dump/log $e to see what kind of exception it was. Not sure the DB layer only throws Database_Exception.
Comment by
WanWizard
October 2012
permalink
two templates one controller
Correct. If $this->template is a string, the Controller_Template's before() method will convert it into a View object for you, but that only works for the initial template.
Comment by
WanWizard
October 2012
permalink
two templates one controller
Using Controller_Template I assume? Not a problem, in your method you can just assign a new View to $this->template. Note that if you had assigned variables to the old template in your before() method, those will be lost.
Comment by
WanWizard
October 2012
permalink
Fuel 1.3 find_file bug
You can probably backport core/classes/config/file.php to your 1.3 install, I don't think there were any more changes in Config.
Comment by
WanWizard
October 2012
permalink
Fuel 1.3 find_file bug
Found and fixed in 1.4/develop.
Comment by
WanWizard
October 2012
permalink
Check if the operation succeeded
Have you tried what I asked, and put the processing of the file in a try/catch block?
Comment by
WanWizard
October 2012
permalink
Check if the operation succeeded
I understand that, hence my question. "an error"? What error? A PHP error? An exception? Which one? Some errors can be caught by a try/catch block, but not all.
Comment by
WanWizard
October 2012
permalink
Conditional join with DB class
Added some clarification to the docs (1.4/develop).
Comment by
WanWizard
June 2011
permalink
Check if the operation succeeded
Why does your script stop?
Comment by
WanWizard
October 2012
permalink
Fuel 1.3 find_file bug
Can you be more specific? What did you expect to happen? What exactly happens? Where do the duplicate values come from? Do you have multiple 'info.php' files in your search path that get merged by the Config class?
Comment by
WanWizard
October 2012
permalink
Installation using curl is not working any more
Just that, see http://docs.fuelphp.com/installation/instructions.html After you've installed the oil command 'oil create ' will download the source into a new folder (of the current directory) called .
Comment by
WanWizard
October 2012
permalink
Installation using curl is not working any more
What exactly doesn't work? That command just installs the oil script in /usr/bin, it doesn't do anything else.
Comment by
WanWizard
October 2012
permalink
Why on earth a public directory?
Added these instructions to the docs: http://dev-docs.fuelphp.com/installation/instructions.html#/install_inside_root
Comment by
WanWizard
October 2012
permalink
Why on earth a public directory?
See my previous post. * Copy the entire zipfile into [url=http://localhost/project_one]http://localhost/project_one[/url] * Move everything in the project_one/public folder one level up * Delete the now empty public folder * Open index.php in yo…
Comment by
WanWizard
October 2012
permalink
Why on earth a public directory?
I understand what you simply prefer. And you're perfectly welcome to stick to the way you always worked. But that doesn't change it. We prefer it this way. We have tens of thousands of users that understand our reasoning. We prefer to sol…
Comment by
WanWizard
October 2012
permalink
Why on earth a public directory?
Maybe you should start reading the documentation. The public folder should be your DOCROOT, so that all code is outside the docroot, and therefore not accessable from the browser. This is a security feature. This also works for virtually all shared…
Comment by
WanWizard
October 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,394
Last Active
6:13AM
Roles
Administrator