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
ORM - Temporal Model - Fetch Related Objects
I checked with Steve, this issue is solved in the current development branch, so it will be part of 1.7.2, which is due later today.
Comment by
WanWizard
May 2014
permalink
ORM - Temporal Model - Fetch Related Objects
Very odd. I'll check with Steve., I can't imagine this is a code issue, lots of existing apps would trip over a bug like this. No issue with a property and a relation with the same name?
Comment by
WanWizard
May 2014
permalink
mail not send
Apart from the fact that you should NEVER use the \Fuel\Core namespaces in your code, this looks ok. But you can't see anything by just looking at the code? Which email transport is configured? SMTP via localhost? Something else? Since you ha…
Comment by
WanWizard
May 2014
permalink
Why "minimum-stability": "dev" ?
And what I replied was: "in a develop repo it should, in a master repo it should be pinned to the version you have developed against". So I will change that when I release 1.7.2.
Comment by
WanWizard
May 2014
permalink
ORM - Temporal Model - Fetch Related Objects
I can't immediately see why that would not work. Any error messages? What does var_dump($object->relation_name) say?
Comment by
WanWizard
May 2014
permalink
Why "minimum-stability": "dev" ?
What I mean is that (unless you have specific reasons not to) you develop against the latest version of the libraries you intend to use. Which depending on the library might be a tagged version (if that is actively used), a specific commit, or HEAD.…
Comment by
WanWizard
May 2014
permalink
separation of public and site admin panel?
What do you exactly mean by "separation", how, and how far, do you want to separate them? In the end, every function is executed by a controller action, so in that sense every request is already separated from others.
Comment by
WanWizard
May 2014
permalink
Why "minimum-stability": "dev" ?
Unless you have specific requirements, when developing it is good practive to develop against the latest version. It basically means it checks out HEAD instead of a version. When releasing, it is good practice to change it and pin it to the version…
Comment by
WanWizard
May 2014
permalink
How do I load a vendor class in a task
Assuming your use statement is correct, I think the problem is that "namespace" must be the first executable statement in a PHP file, and "use" most come after that?
Comment by
WanWizard
May 2014
permalink
Help with Tinymce or ckeditor
No, sorry, I'm not a frontend guy. If the javascript loads, it's over to the frontend guys...
Comment by
WanWizard
May 2014
permalink
Help with Tinymce or ckeditor
Ok, so it's not a Fuel thing, it's a javascript thing?
Comment by
WanWizard
May 2014
permalink
Help with Tinymce or ckeditor
and the HTML of the rendered page contains the javascript link to tinymce?
Comment by
WanWizard
May 2014
permalink
Relating Models in Module
Yes, because it's not a class reference, it's a string. Class names in strings don't inherit the current namespace (simply because where you define it could be not where you use it), so they always are from global. In short, in a st…
Comment by
WanWizard
May 2014
permalink
Relating Models in Module
Since a module implies a namespace, yes, you need to prefix every class with the namespace, unless you're inside the module. Having said that, the idea behind modules is loose coupling. You should be able to take any module, throw it into anot…
Comment by
WanWizard
May 2014
permalink
Set HMVC request into partial from main backend controller
That is not a problem, all our applications work that way. Assuming Controller_Blog::action_index() returns a View object, the problem might be that the result of a Request::forge() is an unexecuted Request object, and the Theme class can't de…
Comment by
WanWizard
May 2014
permalink
How to autoload langauge from module?
If you want to autoload a language file from a module, you need to autoload the module too, and you need to load the file like in that post you linked to: 'shop::shop' => 'shop' otherwise you can't use Lang::get('s…
Comment by
WanWizard
May 2014
permalink
can't use php oil refine migrate
Cool. Good luck, and happy coding!
Comment by
WanWizard
May 2014
permalink
can't use php oil refine migrate
Also, since you don't define the driver type in this db.php, what is defined in the global config (in app/config/db.php) ? Does your website itself work? Does your index.php load. If so, could you add \Config::load('db', true); var_…
Comment by
WanWizard
May 2014
permalink
can't use php oil refine migrate
On a Mac, using localhost is not a good idea, either use a proper host name, or use 127.0.0.1. And that database exists?
Comment by
WanWizard
May 2014
permalink
can't use php oil refine migrate
Is your app/config/development/db.php config file configured correctly? It looks like the database name is missing from it?
Comment by
WanWizard
May 2014
permalink
can't use php oil refine migrate
It's a common problem on a Mac, with MAMP, but also with other packaged environments. The problem is that php in MAMP uses a non-standard php.ini location, so php-cli (used by oil) which uses the default in /etc will use the wrong one. Result …
Comment by
WanWizard
May 2014
permalink
Oil genera MODULE monkey name:string description:text
There is in 1.8/develop, it has been added recently. It will be part of 1.7.2, due any day.
Comment by
WanWizard
May 2014
permalink
Could it use the only validation?
See http://www.fuelphp.com/forums/discussion/13052/admin-scaffolding-edit-method-wants-to-call-a-static-method-validate-on-model#Item_4 where I just answered the same question.
Comment by
WanWizard
May 2014
permalink
Admin scaffolding edit method wants to call a static method validate on model
When you're using ORM and validation rules in the ORM properties, you have two options. The easiest is to let save() do it, put that in a try/catch block and capture the validation exception. Downside of this is that you only get one error, si…
Comment by
WanWizard
May 2014
permalink
Admin scaffolding edit method wants to call a static method validate on model
The validate() method is generated as well, as part of the model. The method gets the name of the function passed so you know if it's a create or an edit, and you can validate accordingly. It is done this way because it's a generic solut…
Comment by
WanWizard
April 2014
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,368
Last Active
12:00AM
Roles
Administrator