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
8242
Activity
Validation error messages
Yup. That is the message generated by Firefox in HTML5 mode and a field marked "required". If you don't want this on submit, add the "formnovalidate" attribute to the button. This is handy if you use submit buttons for oper…
Comment by
WanWizard
January 2012
permalink
get_one() on related
Interesting. I wonder why that sub query is inserted to deal with that WHERE clause. I have to pass this over to Jelmer... What version of FuelPHP are you running? A release version, or 1.1/develop?
Comment by
WanWizard
January 2012
permalink
get_one() on related
Can you dump the query (or use the profiler to get it) so we can see what goes wrong?
Comment by
WanWizard
January 2012
permalink
Autoloading capitilised classes
added the missing info to the docs.
Comment by
WanWizard
January 2012
permalink
Silly DB question
DB methods always return an array, regardless of the result. This means you can depend on the result, and don't have to test first. You disable that feature by returning different data types based on the result, which means that in your contro…
Comment by
WanWizard
January 2012
permalink
Asset has suddenly started to print JS inline...
No, there isn't. The inline inclusion is triggered by the third parameter of the js() method. I went through the code (1.1/develop branch) and there isn't a single line of code that alters the value of that parameter. Which version of Fue…
Comment by
WanWizard
January 2012
permalink
Asset has suddenly started to print JS inline...
If this behaviour suddenly started, the first question is: what did you change in the application or your FuelPHP installation? When I paste that code in the welcome/index view of a new FuelPHP installation, it works as advertised: < script type…
Comment by
WanWizard
January 2012
permalink
Fuel-gallery
This is a third party package and is not supported by FuelPHP. Look for the thread for this package in the "Code Share" forum, and ask the author of the package.
Comment by
WanWizard
January 2012
permalink
Uploading images and generating thumbnails.
Probably nothing you can do about it, processing images takes a lot of memory. An alternative is to do this offline. Put uploaded images in a 'to be processed' queue, and copy a generic thumbnail image as thumbnail for the uploaded image.…
Comment by
WanWizard
January 2012
permalink
Best place to put models in a package
Jason Judge wrote on Wednesday 25th of January 2012: Just to add to this, the documentation here http://docs.fuelphp.com/general/packages.html says to just dump all the classes into one folder. To start with this one: I don't see that. The …
Comment by
WanWizard
January 2012
permalink
Changing the script to be generated at scaffolding
You can copy them to your app/views folder (same name and folder structure), and modify them there. Do not modify anything in packages, they will be overwritten when you update the package. Note that if you do this, you will have to manually keep u…
Comment by
WanWizard
November 2011
permalink
Send ajax request and handle function
You need to request the full URL. Normally, your rewrite rules will remove the public/index.php part from your URL, and you can just call '/ajax/uprav'. You can try using Uri::create() to generate the URL, it should create the correct URL…
Comment by
WanWizard
January 2012
permalink
Send ajax request and handle function
For ajax calls, use a controller that extends Controller_Rest. It returns only data in your choice of format (xml, json, etc).
Comment by
WanWizard
January 2012
permalink
Best way to autoload PCR-O standard vendors
I wrote "add the namespace", not "add the classes". You don't need to add every class file. FuelPHP's autoloader is very capable when it comes to translating namespaces and classnames to file paths. All it needs is to …
Comment by
WanWizard
January 2012
permalink
Uploading images and generating thumbnails.
Going through the docs of those two classes would be a good start. They do everything you want. There have been some discussions here about the use of both classes, maybe they can give you some pointers too. Associating depends heavily on how your …
Comment by
WanWizard
January 2012
permalink
Best way to autoload PCR-O standard vendors
You can add a PSR-0 compliant searchpath to the autoloader using \Autoloader::add_namespace('Zend', '/my/path/to/zend', true); I've never used it. You might have to do this for every namespace used in the package, I'…
Comment by
WanWizard
January 2012
permalink
ORM overriding httpcode on REST controller
I fail to see the relationship between the ORM and an HTTP status code. If an ORM method call fails, and you catch the exception thrown, you can do with it what you want. If you don't catch it (either because you didn't code the catch, or…
Comment by
WanWizard
January 2012
permalink
Session::set() bug
For Arr it is, for session it isn't. Arr uses the null value to do some replacing using the passed value, which is undesired behaviour for Sessions. I've now blocked $name = null from updating the session data.
Comment by
WanWizard
January 2012
permalink
Autoloading capitilised classes
You can use the add_classes() section of your app bootstrap.php to define custom class -> file mappings.
Comment by
WanWizard
January 2012
permalink
Session::set() bug
I think this is related to the code change, where the Arr class is now used to get and set values. For Arr, this is expected behaviour, but I understand this shouldn't be the case for Session. Bugs can be reported on github per repository, in …
Comment by
WanWizard
January 2012
permalink
Sentry + Ninjauth together?
Moving this topic, both Sentry and Ninjauth are third party packages, not related to Auth.
Comment by
WanWizard
January 2012
permalink
packages' namesapce
The namespace for tasks is set because oil doesn't have any way of determining the namespace defined for a task class. It can find and load the task, but it can never call it if it doesn't know the namespace. We're open for suggestio…
Comment by
WanWizard
January 2012
permalink
How can I use DB::select() result as object in my views?
Well, it does what you've asked, the data is returned as an object. If you want a specific type of object, then you'll have to specify it as parameter of as_object(), for example as_object('stdClass'). Note that this is not supp…
Comment by
WanWizard
December 2011
permalink
Url Suffix Problem from Config
Depends on what you mean by 'runtime'. If you mean adding a route in memory, then yes, that is possible through the Router::add() method. Altough not very useful, unless you do this before the Request class process the request. If you mea…
Comment by
WanWizard
January 2012
permalink
Sentry - Authentication Package
Daniel Petrie wrote on Saturday 21st of January 2012: I don't think we've touched any of your code that you wrote for it WanWizard, I just added the column to migrations. I think something went wrong there, the parent should be a group…
Comment by
WanWizard
December 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
WanWizard
Joined
January 2011
Visits
2,374
Last Active
12:30PM
Roles
Administrator