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
Lang files -> Need help !
Ah, you didn't say that before. You can only load a file (language, config, etc) from a module in your in the "module context", i.e. if the request resolves to a module controller. It is considered bad design to do cross module call…
Comment by
WanWizard
March 2013
permalink
Lang files -> Need help !
Where do you load the language file and do the var_dump()? If your default language is 'fr', it should load app/lang/fr/... without problems.
Comment by
WanWizard
March 2013
permalink
Controller in subdirectory
As per the coding standards: everything in the filesystem is lower case.
Comment by
WanWizard
March 2013
permalink
Controller in subdirectory
If it's in /fuel/app/classes/controller/api/test.php, and it's called Controller_Api_Test, a URI like "/api/test" should work without problems. Does it contain an action_index ?
Comment by
WanWizard
March 2013
permalink
Example of search form processing
That depends. I assumed these were normal input fields. If they are multi-selects too, that needs to be changed to: if ($input = Input::post('from_year', array())) { $query->and_where_open(); foreach ($input as $value) { …
Comment by
WanWizard
March 2013
permalink
How to make Edit form
Then you can also use a Fieldset to generate Crud forums, using the models property definitions.
Comment by
WanWizard
March 2013
permalink
Lang files -> Need help !
Unit tests run at the command line, so there is no URI, and no language to get from it. The method described in the blog post only works for interactive requests. You will have to make sure the default language is set correctly in your app/config/c…
Comment by
WanWizard
March 2013
permalink
How to manage multiple domains for the same app.
How to implement that depends greatly on what you want to do, i.e. what the differences are. We have an app which provides a SaaS application, every client has his own subdomain, and the Theme class is used to provide the correct look-and-feel for …
Comment by
WanWizard
March 2013
permalink
What do you think is the best way to implement multi site management?
Sure: http://www.snipr.it/~B3
Comment by
WanWizard
March 2013
permalink
Example of search form processing
Your input field must be an array:
Comment by
WanWizard
March 2013
permalink
Example of search form processing
If you define the select as "multiple", your input form field must be an array, otherwise you're only getting the last element.
Comment by
WanWizard
March 2013
permalink
Image::save() occurs an error.
If you found an error, please test it with the latest develop version (1.6/develop at the moment). If it is still an error, please create an issue for it at http://github.com/fuel/core/issues
Comment by
WanWizard
March 2013
permalink
Oil r fromdb:scaffold - Relationships / Many to Many / etc..
Oil doesn't do relations, and therefore it doesn't do relation or join tables either. To maintain your database schema, use migrations. Oil will generate those for the tables themselfs, you will have to add the rest manually.
Comment by
WanWizard
March 2013
permalink
Example of search form processing
Just pass 'multiple' to Form::select() in the attribute list.
Comment by
WanWizard
March 2013
permalink
this may be a jst php quection
If it's in a session, you can access it everywhere. So what's the question then?
Comment by
WanWizard
March 2013
permalink
Code-igniter or fuelphp for oauth2.0 authorization server
It looks like Laravel, but I'm not sure. It is not FuelPHP (although you could run this code with a few minor changes), and definately not CodeIgniter.
Comment by
WanWizard
March 2013
permalink
Example of search form processing
// create a query object $query = Model_Something::query(); // add optional where clauses $input = Input::post('from_year', false) and $query->where('from_year', '=', $input); $input = Input::post('to_year'…
Comment by
WanWizard
March 2013
permalink
APP crashes on error level warning, but config set to continue
E_WARNING etc are PHP contants, not strings...
Comment by
WanWizard
March 2013
permalink
Search form
I assume this is because you're using a Fieldset in combination with add_model? You can remove a rule using the fieldset field's delete_rule() method: $fieldset->field('brand_id')->delete_rule('required'); I us…
Comment by
WanWizard
March 2013
permalink
Error - invalid data source name in COREPATH/classes/database/pdo/connection.php on line 94
In your config, you have 'identifier' => '"', For MySQL, the identifier is a ` (a backtick).
Comment by
WanWizard
March 2013
permalink
Error - invalid data source name in COREPATH/classes/database/pdo/connection.php on line 94
I hope your directory names are lower case, otherwise Fuel can't find anything. Your db config should be in app/config/development/db.php, as db config is specified per environment. Only global settings go in app/config/db.php. Both files are…
Comment by
WanWizard
March 2013
permalink
Form select and selected value
1.5 should work fine too, I've just confirmed that here.
Comment by
WanWizard
March 2013
permalink
Form select and selected value
Works fine here. Tested it on 1.6/develop and 1.5/develop, which version are you on?
Comment by
WanWizard
March 2013
permalink
Long running tasks
It's up to you do decide if and where that is needed. So if you need it, you'll have to add it.
Comment by
WanWizard
March 2013
permalink
Found bug | delete
We are aware of that. Platform independency is planned for 2.0. If you need it now, extend the class that generates that, and remove it in your extended version.
Comment by
WanWizard
March 2013
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,390
Last Active
1:33AM
Roles
Administrator