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
Autoloader issue: File does not contain class error
The autoloader contains a cache of loaded classes. When it's not in the cache, it includes the file it thinks the class is in, and then uses class_exists() to verify if the file included does actually contain the class.
Comment by
WanWizard
January 2016
permalink
Autoloader issue: File does not contain class error
Ok, cool. To answer your last question: fuel doesn't know you've included it, so when you call the test method, the autoloader includes it again, causing that error.
Comment by
WanWizard
January 2016
permalink
pass View through ajax
Is that controller a REST controller? Or a standard controller that adds the rest of the page?
Comment by
WanWizard
January 2016
permalink
Route subdomain to a specific controller using mod_rewrite
You can enable rewrite logging to see exactly what is rewritten, and where your logic fails.
Comment by
WanWizard
January 2016
permalink
I have an issue with ORM, KIndly Help
You have a where on a column of the child in the relation? Ah, in that case the result you get is logical, even of you change the join, the where will not match, so you wont get the result. I have to say I don't get your query at all. What e…
Comment by
WanWizard
January 2016
permalink
Autoloader issue: File does not contain class error
You get this if in the autoloader if (class_exists($class, false)) returns false, and the only reason for this happening, assuming the file itself exists and is ok, is a rights issue. Can your webserver user read the file?
Comment by
WanWizard
January 2016
permalink
I have an issue with ORM, KIndly Help
Enable the profiler in your config file, and enable database profiling in your db config. Run your queries, then check the profiler output, it shows you the exact SQL generated, and the result in number of rows. As a double check, you could copy t…
Comment by
WanWizard
January 2016
permalink
router.php error
controller_path are the URI segments before the controller. With this URI, /path1/path2/controller/action/parm1/parm2 controller_path would be "path1/path2". The error was caused because your URI doesn't have any segments at all…
Comment by
WanWizard
January 2016
permalink
The Fuelphp sample is not working. (Passing functions to views)
You can try, I don't know from the top of my head if it has depencencies with other Fuel components. In general I advise against mixing versions.
Comment by
WanWizard
January 2016
permalink
Restoring WIll not restore the SOft Deleted Items
I'm not very good when it comes to soft-delete, you might want to ping Steve (uru) on IRC, he wrote it.
Comment by
WanWizard
January 2016
permalink
The Fuelphp sample is not working. (Passing functions to views)
I already told you that 1.7.3 does not contain the fix. If you install from zip, you need to use https://github.com/fuel/fuel/archive/1.8/develop.zip.
Comment by
WanWizard
December 2015
permalink
Email::forge error
Or the email config file is wrong, or doesn't return an array. Start by telling us what in the forge() method exactly causes the error, by looking at the backtrace.
Comment by
WanWizard
December 2015
permalink
single modal with dual relation
Sorry about that, was on the road, had to reply from memory... ;-)
Comment by
WanWizard
December 2015
permalink
single modal with dual relation
See if I understand the question: A => B A => C => B And you want to know which B is related to both A and A => C? In these cases, always try to think of how you would write the SQL to produce the required result. And if you have it, …
Comment by
WanWizard
December 2015
permalink
Change Query After creating Query Object
Ok, so the query is ok? If you paste this query in something like PHPMySQLAdmin, do you get the result you are after? If the query produces a result, but get() or get_one() returns null, you might have hit a bug in the ORM. Can you double-check th…
Comment by
WanWizard
December 2015
permalink
The Fuelphp sample is not working. (Passing functions to views)
oil does install the stable production version, which at this moment is 1.7.3. How you switch depends on how you have installed Fuel. If you have local repositories (does ./fuel/core have a .git folder?), I have already told you how to switch. If y…
Comment by
WanWizard
December 2015
permalink
Change Query After creating Query Object
No, as I wrote before, by default the ORM generates standard joins (which in the case of MySQL is an INNER join), which means related table entries MUST exist. If you want other join types, you have to define them either on the models' relatio…
Comment by
WanWizard
December 2015
permalink
The Fuelphp sample is not working. (Passing functions to views)
No. But the fuel/docs repo also has a 1.8/develop branch, and you can find them online at http://fuelphp.com/dev-docs. When you have local git repo's, you migrate by changing the branch: cd ./fuel/core git checkout 1.8/develop and the same …
Comment by
WanWizard
December 2015
permalink
I have an issue with ORM, KIndly Help
Then I have misunderstood you, and we have a language issue.
Comment by
WanWizard
December 2015
permalink
Change Query After creating Query Object
All data passed to a view is encoded, and that includes a query object. You should not have application logic in your views. Filtering is application logic, and should happen in your controller. ORM model objects are encoding aware, so you can pas…
Comment by
WanWizard
December 2015
permalink
The Fuelphp sample is not working. (Passing functions to views)
That will install the latest release version, 1.7.3, which doesn't have the fix. oil create will do a "git clone", so you can just go into your fuel/core and fuel/packages/... folders, and to a "git checkout 1.8/develop" to…
Comment by
WanWizard
December 2015
permalink
The Fuelphp sample is not working. (Passing functions to views)
What version of Fuel are you on? It is addressed here (https://github.com/fuel/core/commit/627441c5341e698b5dd6e8553dab3879f81794c3) on July 3rd, which means you need to run 1.8/develop (or backport the View class).
Comment by
WanWizard
December 2015
permalink
Change Query After creating Query Object
Which is what I wrote in the other topic.
Comment by
WanWizard
December 2015
permalink
Change Query After creating Query Object
That code looks fine, I use that all the time. So the problem must be elsewhere.
Comment by
WanWizard
December 2015
permalink
How i count() related Model
Model_b::query()->where('foreign_key_a', '=', $keyvalue)->count(); ? Or if you have included the related objects in your query. $result = $query->related('b')->get_one(); $count = count($result->b);
Comment by
WanWizard
December 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,388
Last Active
1:48AM
Roles
Administrator