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
ORM - Multiple model in one relationship
To start with your last one: What do you want to achive with that? The "Belongs_to" side is the record that has the foreign key, and there can be only one. So you can only have: has_one -> belongs_to, and has_many -> belongs_to. A…
Comment by
WanWizard
July 2014
permalink
Erro PDO
I run Fuel on Windows 2012 server with WAMP, especially for compatibility testing. And that works without problems. You keep on complaining, but you don't give any information about your setup, your configuration, exact errors, what you have t…
Comment by
WanWizard
July 2014
permalink
Is there an endorsed "Hello World" tutorial for FuelPHP
I don't think there is one. There were a few screencasts but they got lost by the hoster and the person how made them didn't keep a copy. This is a pretty quick rundown or reasonable quality: http://ucf.github.io/fuelphp-crash-course/. If…
Comment by
WanWizard
July 2014
permalink
CacheDir not writable
Do you get it when you run an old task, or when you request a web page? If the first case the user you logged on as doesn't have write access, in the second case the user the webserver runs as doesn't have write access. I usually solve t…
Comment by
WanWizard
July 2014
permalink
use themes. How?
Themes are about Views, not (directly) about assets. In terms of evolution, the most basic is to work with individual Views, returned by controller methods. One step up is use nested views (see http://fuelphp.com/docs/general/views.html) where you …
Comment by
WanWizard
July 2014
permalink
Erro PDO
If you don't give us any information, there isn't a lot we can do. What does your setup look like? What is in your db.php config? And where is this db.php file?
Comment by
WanWizard
July 2014
permalink
Difference between /fuel/vendor and /fiel/app/vendor ?!
No, you misunderstood me. Guzzle is available as a composer package, and composer will install it in ./fuel/vendor (aka VENDORPATH). Both the vendor folder in APPPATH and COREPATH are for MANUAL installation of external packages or libraries. Stuf…
Comment by
WanWizard
July 2014
permalink
Erro PDO
If you say so. The error message is very clear: PDO Exception "could not find driver" If you Google for it you get tons of replies telling you all the same: either your DSN is wrong, or a PDO driver is not installed. And the fact that…
Comment by
WanWizard
July 2014
permalink
Erro PDO
No, you need to use the oil console (php oil console) and then type the function name. The console gives you an interactive PHP commandline in which you can type any PHP command, access any class in your app, run a DB::select on a table, etc. It…
Comment by
WanWizard
July 2014
permalink
Can't Run Migration
Ok, thanks.
Comment by
WanWizard
July 2014
permalink
Can't Run Migration
@joeymetal, please don't post the same question multiple times...
Comment by
WanWizard
July 2014
permalink
Erro PDO
It is a very simple problem. PDO exception "could not find driver" means either the DSN in your PDO config doesn't define (the correct) driver, or the driver is not installed in your config. If it does work from a webpage, but it do…
Comment by
WanWizard
July 2014
permalink
Can't Run Migration
Can you explain for other readers what exactly the problem was, and how you fixed it?
Comment by
WanWizard
July 2014
permalink
TO upgrade fuelphp or start fresh?
Depends on what you mean by "close". The core has been "alpha" ready for some time, and is reasonable stable after the last major change (= the introduction of Component). It still needs a lot of unit tests and optimisation. We…
Comment by
WanWizard
July 2014
permalink
Difference between /fuel/vendor and /fiel/app/vendor ?!
vendor folders are there to install third party code. VENDORPATH is where composer installs it's packages.You're not suppose to do anything in there manually. There are two other vendor folders, in APPPATH and in COREPATH. External non-c…
Comment by
WanWizard
July 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
We had a chat about this internally, and decided to revert the idea. The zip has been updated to include all dependencies now, running composer is no longer needed after unpacking.
Comment by
WanWizard
July 2014
permalink
How to create multisite (admin/frontend) apps in FuelPHP?
There is always a direct mapping between a (virtual) hostname (a URL), a public folder (index.php) and an app (defined in index.php). In all cases, your apps can share the rest: you can have a central fuel/core installation, and change the COREPATH…
Comment by
WanWizard
July 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
The idea was that you needed to run composer anyway, you think it's better to have a large but complete zip ?
Comment by
WanWizard
July 2014
permalink
ORM WHERE LIMIT inside the Subquery
You may want to use rows_limit() instead of limit().
Comment by
WanWizard
July 2014
permalink
Suggestion about packages
Currently that is difficult because documentation is not an application, it's static html. We're looking to revise this for Fuel v2, where the docs will be in markdown, and the app (which is currently called "Fuel Depot") could …
Comment by
WanWizard
July 2014
permalink
Can't Run Migration
Thanks, received and installed. Apart from the fact that your config didn't autoload the Orm package (so your article controller gave a fatal error), everything runs fine here. I ran the migration using oil to create the articles table, and af…
Comment by
WanWizard
July 2014
permalink
Can't Run Migration
If you can't get it, if you want you can zip your entire virtualhost, and send it to me at wanwizardfuelphp.com, and I'll have a look here. If it runs here, it's not the framework or your code, it's your setup.
Comment by
WanWizard
July 2014
permalink
Can't Run Migration
I haven't got a clue what exactly you are doing. I don't know if you need to install mysql, I don't know what FortRabbit is and what they supply. In case you work locally, it depends on what you use. One of the common problems in en…
Comment by
WanWizard
July 2014
permalink
Error in DB::query() parameter compilation with null parameter?
Yes, you are right. where('MyField', $param) is a shortcut or alias of where('MyField', '=', $param). The current DBAL was taken from the Kohana v2 codebase, is over 3 years old, and is at some points difficult to …
Comment by
WanWizard
July 2014
permalink
Tasks - DB error
Yes. But it has it's downsides too, as you have noticed. ;-)
Comment by
WanWizard
July 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,394
Last Active
6:13AM
Roles
Administrator