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 when setting and saving nested models
Fieldset and Validation are a bit voodoo I'm afraid. I never use nested fieldsets, so I would have to setup a test environment and dive into it, something I don't have the time for at the moment. Can you create an issue for this (https:…
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
If you don't mind that you get your local test data on the server, than that is an option. And for subsequent deployments, this would mean losing all your server data. Migrations work incremental, the beauty is that you can make database chang…
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
Migrations can do more than add tables. I assume there are also migrations that alter the schema, for example add of delete columns of existing tables, or convert data. As to your last question: that might be a bit of a challenge. Fuel has not been…
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
Ah, the error is generated by the migrations too. So your migrations are poorly written, they seem to require an Auth table to be there, but don't check for it. You can try running the Auth migrations seperately: php.exe oil refine migrate --…
Comment by
WanWizard
March 2015
permalink
What are (1) and (2) in Orm Troubleshooting
Very good question. It was added like that by Jelmer: https://github.com/fuel/docs/commit/0463a0c29031d3d1a0128d84ad7cd56cc2aad02f Maybe he intended to number them? I think those numbers can be removed, I don't see why not.
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
That looks like an Auth table that is not generated. When you run the migrations, does it say anything about package Auth?
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
This is not correct. Migrations are executed in sequence, based on the sequence number. These all have the same sequence number, so that can cause migrations to be skipped. The files should start with 001 and then count up. Migrations are tracked …
Comment by
WanWizard
March 2015
permalink
Reusability of code
There are a lot of ways to deploy an application, it is difficult to give a single-fits-all advice, it depends to much on your skills and environment. Some people simply ftp their entire app (or parts of it) to their production server. We use our o…
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
If you have migrations, it's unlikely you need the mwb file at all, it is perhaps only used for development. Just run the migrations, hopefully that is all you need. In your root folder, run php.exe oil refine migrate --all (again, you might…
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
I have never used MySQL Workbench. I guess you have to install that (http://dev.mysql.com/downloads/workbench/), load the mwb file which produces a database schema, then have workbench connect to your mysql server, create the database, and use the …
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
Ok, so you're missing the entire framework from your repo. You should have fuel/core, fuel/packages/orm, etc. If the application is build on a recent version of Fuel, you can install the framework using composer. Go into the application root …
Comment by
WanWizard
March 2015
permalink
Need help with HMVC example
No problem, I'm here to help. ;-)
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
I want to know if the repository you have contains the framework as well, or only the application. So I need to find out what the folder structure is. Which folders are in the root of your repository? Do you have a "public" and a "fu…
Comment by
WanWizard
March 2015
permalink
how to fixed this? require(): failed opening required '\classes\autoloader.php'.
No need to ask the same question multiple times, you won't get help any quicker. This just looks like either no rights (unlikely on Windows), or your repo simply doesn't contain the framework. To make sure, I need the answer to my previou…
Comment by
WanWizard
March 2015
permalink
How to install existing fuelphp project from repo?
An mwb file is not a database, it's a MySQL workbench file, so it may contain a schema for a database. An indication that whoever created this application wasn't too knowledgeable, it would have been easier to use migrations to create the…
Comment by
WanWizard
March 2015
permalink
Vagrant box
https://github.com/kenjis/vagrant-fuelphp-centos6 ?
Comment by
WanWizard
March 2015
permalink
Need help with HMVC example
You need the backslash because your controller is now in the Admin namespace, and you need to load the "Controller" class from the global namespace. Same is true for all other core classes, you need to prefix them with a backslash, otherw…
Comment by
WanWizard
March 2015
permalink
Need help with HMVC example
It's a controller, it needs to extend one of the base controllers: class Controller_Test extends \Controller { }
Comment by
WanWizard
March 2015
permalink
Need help with HMVC example
You are missing a folder: And you've got a folder name wrong. > in folder modules, I have a folder named admin. > in admin I have a folder called controllers You need ./modules/admin/classes/controller So the folder structure in a modu…
Comment by
WanWizard
March 2015
permalink
Why can't I switch active template in controller
Because $template should be a View instance. It is the before() method of the Template controller that converts it if a string (= view name) is given instead of a View. // this would work $this->template = \View::forge("cool_new_template&q…
Comment by
WanWizard
March 2015
permalink
Question: FuelPHP global before or middleware
Tip for next time: always create a base controller, if only an empty one that extends \Controller (or whatever you want to use as a base).
Comment by
WanWizard
March 2015
permalink
Updating model and its loaded relations with a single nested array
Hmm, yeah. always tricky this self vs static business. I guess in this case self would do, as you would want to know if it is an \Orm\Model instance. I'll push the fix in a minute.
Comment by
WanWizard
March 2015
permalink
Updating model and its loaded relations with a single nested array
Everything looks ok, but the last should return "true". $value is an array we can see from the dump, so it must be the instanceof that fails. Can you dump that indivually (so without the "and is_array..."), to check if it is the…
Comment by
WanWizard
March 2015
permalink
Updating model and its loaded relations with a single nested array
Are you sure a contact object exists for that user? Because it does not create a new one on the fly, it can only update an already loaded one. edit: it does according to your DB dump Can you check the ORM model.php, and see if line 1249 tests agai…
Comment by
WanWizard
March 2015
permalink
Updating model and its loaded relations with a single nested array
Ok. The primary key issue is solved in 1.8/develop, as long as the value set is the current value. Exactly to cover the issue you have with it. This new exception is because this array will create model property 'contact' (since set does…
Comment by
WanWizard
March 2015
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
7:02AM
Roles
Administrator