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
'This is not a valid Fuel installation so Oil is a bit lost.'
Manual installation should not be a problem. This is a message from the oil bash script, and you'll get this when there is no file called 'oil' in the current directory. The 'oil' script is in the root of your installation …
Comment by
WanWizard
December 2012
permalink
Is there any example of swfupload
FuelPHP doesn't use PHP sessions, so passing PHPSESSID is pointless. See http://docs.fuelphp.com/classes/session/advanced.html on how to deal with sessions and Flash objects. If you see a 302, something is doing a redirect, either a rewrite ru…
Comment by
WanWizard
December 2012
permalink
Is there any example of swfupload
This uses uploadify, but that's flash also. Perhaps it can give you some pointers. https://github.com/huglester/fuel-uploadify
Comment by
WanWizard
December 2012
permalink
No v1.2.1 in Git repo
As I wrote, 1.2/master is the latest 1.2.x version. We don't keep different branches for hotfix releases. Config files have always been in app/config, nothing has changed there. There is nothing user changable in either the core or in package…
Comment by
WanWizard
December 2012
permalink
rest controller and json output in before()
before() is more useful in Controller_Template and Controller_Hybrid when it comes to interactive output (i.e. to the browser). There you can use it to load static partials, set titles, and other prep stuff for the page you're about to output. …
Comment by
WanWizard
December 2012
permalink
Returning multiple datasets
Sorry, but this has nothing to do with FuelPHP, it's plain PHP. Perhaps read over the OOP stuff again? Class Controller_flot extends Controller_test{ public function action_index() { $data = array( 'address…
Comment by
WanWizard
December 2012
permalink
Returning multiple datasets
I didn't say that. I said method. As in getAddress() and getChartInfo() or something like that.
Comment by
WanWizard
December 2012
permalink
How to create a Theme using a Template engine like smarty
You don't need to call the Parser class. If you load the package it works automatically. The theme class works with Views, if you want to call a template engine with the parser class you'll have to tell the parser which engine to use. You…
Comment by
WanWizard
December 2012
permalink
Returning multiple datasets
A method can only return one value, that's PHP I'm afraid. Create two methods for it, and your problem is solved.
Comment by
WanWizard
December 2012
permalink
rest controller and json output in before()
As the docs state, you should not use before() to make routing descisions. In other works, to alter the request flow in the controller. It can only be used for generic prepping code (that has to be executed before every method in the controller). B…
Comment by
WanWizard
December 2012
permalink
ajax and CSRF
If you use ajax, you'll have to use http://docs.fuelphp.com/classes/security.html#/method_js_set_token It will make sure the crsf token stored in the form is correct.
Comment by
WanWizard
December 2012
permalink
ORM order_by being ignored/improperly placed into query
I hope you figure it out and let us know, as the location of the order_by should have absolutely no influence on the result, given the way the optimizer works.
Comment by
WanWizard
December 2012
permalink
newbie, how to get $_POST or $_GET
The 'index_file' configuration key is only relevant for the generation of URI's using the Uri::create() method, it isn't used elsewhere. In your original post, you used echo Form::open('input/company/getData'); which…
Comment by
WanWizard
December 2012
permalink
No v1.2.1 in Git repo
The latest 1.2 version is in the 1.2/master branch. 1.2.1. is a hotfix release on 1.2. What kind of problems do you have? Perhaps it's better to fix them, then to stay on a very old version...
Comment by
WanWizard
December 2012
permalink
Any good methods to juggle typing and display formatting of properties?
If you define the fields as data_type 'int', the numeric rules of the observer will kick in too. And the int value of "12/20/2012" is 12. So for custom type conversions, use a custom data_type.
Comment by
WanWizard
December 2012
permalink
How to setup checkbox property to accept 0 or 1 for values
For the fieldset, to be able to determine if it's checked or not, you'll need to defined the 'checked' value in the properties: 'form' => array( 'type' => 'checkbox', …
Comment by
WanWizard
December 2012
permalink
NinjAuth?
If you're logged in you have a valid user account, and some session values to back that up. You can have a look at the http://github.com/fuel/depot code, it has rudimentary profile and registration methods.
Comment by
WanWizard
December 2012
permalink
ORM order_by being ignored/improperly placed into query
I see the difference, but I'm trying to understand what it would mean to the result. In the end, the gm_t0.created_at value un the endresult will be exactly the same values, as they come from the same subquery. Due to the MySQL query optimizer…
Comment by
WanWizard
December 2012
permalink
ORM order_by being ignored/improperly placed into query
Huh? Order is processed by the RDBMS after the results have been obtained. The limit has already been processed, only the resulting rows have to be sorted. I can't see why that query would return rows ordered by "gm_t0.created_by ASC"…
Comment by
WanWizard
December 2012
permalink
ORM order_by being ignored/improperly placed into query
If you want to order on a related column, the order_by clause should be in the related array, not at the main table level. See http://docs.fuelphp.com/packages/orm/relations/intro.html#usage_rel_conditions for an example. And the limit is on the su…
Comment by
WanWizard
December 2012
permalink
Any good methods to juggle typing and display formatting of properties?
What is the problem that you have with created_at? It's a date property like all other?
Comment by
WanWizard
December 2012
permalink
problem on controller_hybrid
1.2.1. didn't have method support, browser requests were always served by action_, hardcoded. The docs are indeed outdated, I'll correct them.
Comment by
WanWizard
December 2012
permalink
problem on controller_hybrid
No, it doesn't work that way. get_ / post_ always have preference above the action_ prefix. The controller is agnostic as to how you access it. So you can't have separate methods for ajax and non-ajax calls with the same name.
Comment by
WanWizard
December 2012
permalink
Propel?
There's only one version: https://github.com/FrenkyNet/Cabinet/
Comment by
WanWizard
December 2012
permalink
Ldap
Sounds logical that Auth::instance('LdapAuth') would return the instance, in this can an Ldap\Auth_Login_LdapAuth object. What did you expect?
Comment by
WanWizard
December 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,369
Last Active
7:12AM
Roles
Administrator