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
Duplicate ORM object with all relations and save
There is no simple solution, as you'll have to copy all objects in the entire chain, which means recursing through all defined relations. You can clone() existing objects, but all relations (except many-to-many) will be reset.
Comment by
WanWizard
July 2012
permalink
Fuel ORM and InnoDB Cascade Delete One-To-One
You have not defined a one-to-one relation here (in the way you define it), since it's a "has_one" at one end, and a "belongs_to" at the other. A belongs_to always expects an FK to the parent, as you should be able to decou…
Comment by
WanWizard
July 2012
permalink
Call to a member function implode_pk() on a non-object
You can't have a relation and a column property with the same name. Since you define 'category' as a key, I assume that's a column name in both tables. Which means you can't have a relation called 'category', as t…
Comment by
WanWizard
July 2012
permalink
File::download issues.
Cool! Thanks for the feedback.
Comment by
WanWizard
July 2012
permalink
How do I set up multiple fuel installs under the same server with different subdomains?
If you're not getting a fuel 404 error, then your rewriting doesn't work and index.php isn't called. You could test that using http://app1.domain.com/index.php/test which should work if everything is installed correctly.
Comment by
WanWizard
June 2012
permalink
File::download issues.
You might be succesful by cherry picking the modified classes from the 1.3 branch and copy them into your core, but I suggest you make a backup first. You need - Event - Event_Instance - File
Comment by
WanWizard
July 2012
permalink
File::download issues.
This is a known bug that has been fixed in 1.3/develop.
Comment by
WanWizard
July 2012
permalink
Response::redirect
If you type the URL in directly ( "http://yoursite/index/login" ), does that work? If so, what does it redirect to? The redirect URL is constructed based on the parameter and your configuration (your base_url, include index.php or not…
Comment by
WanWizard
July 2012
permalink
Multiple Pagination Per Page
You can pass a custom config using set_config(): http://docs.fuelphp.com/classes/pagination.html#/method_set_config So, set a config, generate your links, set a different config, generate the second set of links.
Comment by
WanWizard
July 2012
permalink
Rewrite Problem
Clearly not a FuelPHP issue. Anyone have an explanation for this? If we know what causes it, perhaps it's a good idea to change the default .htaccess in the repository to include the RewriteBase. It doesn't seem to have any impact on a de…
Comment by
WanWizard
August 2011
permalink
How to rebuild database structure ?
Migrations are controller by the migrations.php config file. So NEVER copy this file elsewhere and do NOT include it in your repository if you use version control. The migrations.php file reflects the migrations executed in a specific installation,…
Comment by
WanWizard
July 2012
permalink
FuelPHP Abstraction/Encapsulation implementation?
To start with your previous post: FuelPHP is definately not a spin-off from CI (like Kohana was). FuelPHP was written from scratch (only the DBAL has some kohana components), there isn't a single line of CI code used (if only because the CI li…
Comment by
WanWizard
July 2012
permalink
Email attachment error
Shoot your hoster... This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. http://php.net/manual/en/security.magicquotes.php There is no reason to use magic quotes because they are no longer a supported part of PHP. How…
Comment by
WanWizard
July 2012
permalink
Email attachment error
You server doesn't have magic quotes activated? It should always be off on aPHP 5.3+ install.
Comment by
WanWizard
July 2012
permalink
Transferred App Not Working
What is the "controller folder"? I think I need to know your exact setup. FuelPHP doesn't have a controller folder (that you can navigate to and that has an index.php). There is only one index.php, the FuelPHP front controller, which…
Comment by
WanWizard
July 2012
permalink
Another Underscore Name Question
Classnames in strings are always global, as you found out you always have to specificy the full namespace.
Comment by
WanWizard
July 2012
permalink
FuelPHP Abstraction/Encapsulation implementation?
Apart from Frank all of use have some sort of CI background, Dan Horrigan even was an Ellislab employee for a while. What do you mean by "model" is optional? For me the model is an essential part of the MVC architecture, what you do in i…
Comment by
WanWizard
July 2012
permalink
FuelPHP Abstraction/Encapsulation implementation?
Open source doesn't work without contributions. That is how the mechanism works. You use something, and if you like it, you use it more. You miss something, so you add it. You contribute it, so the project gets better. Which means more people …
Comment by
WanWizard
July 2012
permalink
Transferred App Not Working
The links generated are correct? No weird things in it, no public, no index.php that might indicate a rewrite issue? Do you get a FuelPHP 404 or an Apache 404? If that's all ok, do you develop on Windows by any chance? If so, are all your file…
Comment by
WanWizard
July 2012
permalink
FuelPHP Abstraction/Encapsulation implementation?
Matt, I understand where you're coming from, and I know the dangers that lurk around the corner. However, being a developer with 30 years experience under the belt, and having lead numerous large projects, I'm quite confident that we can …
Comment by
WanWizard
July 2012
permalink
Error 1364, field 'last_login' doesn't have a default value
The problem here is your table definition. You have defined the 'last_login' column as "NOT NULL", but didn't specify a default value. Obviously, when you create a new user there is no last_login timestamp, so it's not…
Comment by
WanWizard
July 2012
permalink
Loading languages
output filtering is only relevant for variables you pass on to your views, either through set() or by assigning them to a view property. There is no filtering run on the output itself.
Comment by
WanWizard
July 2012
permalink
FuelPHP Abstraction/Encapsulation implementation?
Matt, FuelPHP is about fast and simple, so unlike some other frameworks it doesn't contain an enormous layering of classes. For 1.x, most of the framework interface is either static, or uses forge() to create an instance to work with. It has s…
Comment by
WanWizard
July 2012
permalink
Why should I choose Fuel for my framework?
Hello Matt, I will start by saying that choosing a framework is very personal, and therefor it is extremely difficult to give someone advice. The right framework usually depends on the task at hand (which will dictate the features you need) and the…
Comment by
WanWizard
July 2012
permalink
Question about frequent log entry
These are informational messages generated by the framework. You can set the log threshold to for example L_WARNING in your app/config/config.php to see only errors and warnings in the log, and no debug or info messages.
Comment by
WanWizard
July 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,375
Last Active
1:18PM
Roles
Administrator