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
How to use the Auth_User model to create a sign up form with custom profile fields?
Fuel can do some automagic, but there are limits. There is no way the Fieldset can detect what else you would like to have in there, and you can't use the model's properties for that, because they are reserved for table colums. A property…
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
If your origin is still set to github's fuel/fuel repository, you have a bit of an issue with regards to the changes you've made locally. a simple pull will work within the branch you're currently working in, but you can't switch…
Comment by
WanWizard
May 2013
permalink
Corresponding URI does not exist
Your application seems to have a custom Auth class called Auth_Acl_CustomAcl which generates this message.
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
If you're using git, you can just pull in upstream 1.6/master (or 1.7/develop) of the fuel/fuel repo, which will update your local installation. After that you can update the submodules, and Fuel itself is up to date. This process hasn't c…
Comment by
WanWizard
May 2013
permalink
Corresponding URI does not exist
This debug line is generated by your own code (it's not generated by the Framework), so I don't think you'll find help here regarding this message.
Comment by
WanWizard
May 2013
permalink
Image upload and manipulation process
I assume this is because $file['extension'] contains ".tmp", which is something the Image class can't handle. Instead, use the mimetype information in the upload file array to determine if it's a png, gif or jpg, and p…
Comment by
WanWizard
May 2013
permalink
How to create a page and make a url link to it
What error? You haven't mentioned any error? You said you were confused to how it worked?
Comment by
WanWizard
May 2013
permalink
How to find the previous or next key in an array()
Here you go... // return the key or value before whatever is in $current public function previous($array, $current, $use_key = false) { // we'll return null if $current is the first in the array (there is no previous) $previous = null;…
Comment by
WanWizard
May 2013
permalink
How to create a page and make a url link to it
FuelPHP uses a mechanism called URI segment routing. It means that it will look at the segments of the URI (the path of the requested URL), and will map that to a controller action method. If for example your URL is http://example.org/try/this/out…
Comment by
WanWizard
May 2013
permalink
Unit Testing and Model Inheritance
I find this very odd. FuelPHP aliases all core classes to the global namespace (hence the use of the \ prefix everywhere), but the ORM package namespace isn't. So all I can think of is something in your code somewhere that does this. Do you h…
Comment by
WanWizard
May 2013
permalink
How to find the previous or next key in an array()
Are these arrays indexed or assoc?
Comment by
WanWizard
May 2013
permalink
Image upload and manipulation process
output() does what it says, it outputs the file to the browser. Which is probably not what you want, you probably want to call save() instead, see http://docs.fuelphp.com/classes/image.html#/method_save
Comment by
WanWizard
May 2013
permalink
How to find the previous or next key in an array()
There are currently no methods available in the Arr class to do this, so you'll have to code up your own method for doing this.
Comment by
WanWizard
May 2013
permalink
Image upload and manipulation process
When you upload a file using PHP, it will be stored in a temp location on disk after the upload. After you have called Upload::process() (if auto_process is false in your config, otherwise it happens automatically), you can call get_files() to get t…
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
What are "your custom profile fields"? Ormauth (since you mention the Auth_User model) doesn't use profile fields at all, it uses a separate metadata table to store user related information, which is accessed from the User object thr…
Comment by
WanWizard
May 2013
permalink
Redirecting to a new page in a new link.
I'm afraid I can't help you further on this, as it is Smarty specific, not FuelPHP specific. My Smarty knowledge is very rusty, but I can recall you either have to allow PHP in your templates to be able to call framework methods, or creat…
Comment by
WanWizard
May 2013
permalink
1.6 - Major issues with soft delete
For the query bit, an issue was already opened: https://github.com/fuel/orm/issues/256 For the belongs_to notice, the issue https://github.com/fuel/orm/issues/255 was fixed in 1.7/develop. You can backport fuel/packages/orm/classes/belongsto.php to…
Comment by
WanWizard
May 2013
permalink
Redirecting to a new page in a new link.
I think you need to understand the design concepts of a FuelPHP application. An application consists of Controllers, and each controller defines action methods. URI's map directly to controller actions, so a URI path like '/user/login…
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Very well spotted, I'll fix that. Fixed pushed to the 1.7/develop repository.
Comment by
WanWizard
May 2013
permalink
Redirecting to a new page in a new link.
Links within the application always point to a controller method. A FuelPHP application has no "page" concept, that's more of a CMS or a static website thing. The code in the controller method determines what should happen, but thats…
Comment by
WanWizard
May 2013
permalink
Is it possible to run multiple domains/sites to same fuel setup using nginx and modules?
I'm trying to understand what exactly you want. A site === an app, so app is per definition site specific. If you have stuff you need to share between multiple applications on the code level, use a package or a module. A package can be added t…
Comment by
WanWizard
May 2013
permalink
Specifying query columns carries over
Absolutely right. Given the fact the ORM isn't meant to handle large volumes of data, there is no real penalty for fetching all columns.
Comment by
WanWizard
May 2013
permalink
Is it possible to run multiple domains/sites to same fuel setup using nginx and modules?
You can not map to modules, modules are just a collection of classes. If you have multiple websites (i.e. multiple hostnames) you have multiple virtual host definitions, and each should point to a separate /public folder which contains the index.ph…
Comment by
WanWizard
May 2013
permalink
Oil generate - Questions and Confirmation of use
No, oil always generates and overwrites, so you will loose any manual updates. If you want incremental generation, perhaps it's a better option to start at the table end, and use the fromdb task to generate the model based on the table definit…
Comment by
WanWizard
May 2013
permalink
Oil generate - Questions and Confirmation of use
Correct. Oil can generate both Model_Crud and ORM models, but it is not aware of relationships. You have to add the $_belongs_to, $_has_one, $_has_many and $_many_many definitions yourself.
Comment by
WanWizard
May 2013
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:53AM
Roles
Administrator