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
8248
Activity
example for creating module in fuelphp
http://fueldepot.exite.eu (staging site), source on http://github.com/fuel/depot. We're working on it, and at the same time trying to create a public application that can be used as an example of most of the functionality FuelPHP has to offer.
Comment by
WanWizard
July 2011
permalink
Many to Many relationships with additional attributes
Yes, on the relations table.
Comment by
WanWizard
March 2012
permalink
Subfolders in oil refine. is it possible?
No, this is currently not supported. Tasks don't follow the rules of the autoloader, they are loaded hardcoded. This will be remedied in 2.0.
Comment by
WanWizard
March 2012
permalink
Access to oil methods within app?
Afaik the oil classes are CLi driven, they expect a commandline.
Comment by
WanWizard
March 2012
permalink
upload pdf file on the admin
Have a close look at what you're trying to specify. DOCROOT always has a terminating slash, so DS isn't needed there. And if you need 'assets/pdf', why don't you put a DS in between the two?
Comment by
WanWizard
March 2012
permalink
ErrorException [ 4096 ] with phpquickprofiler
Which version of FuelPHP? I think this is fixed in 1.1/develop, line 266 should read: elseif( ! is_array($value) AND ! is_object($value))
Comment by
WanWizard
March 2012
permalink
File Upload help / New to Fuelphp
Sounds better then what it was...
Comment by
WanWizard
March 2012
permalink
Formatting by storing HTML in MySQL, FuelPHP output encoding
Not sure it's available in the 1.1 release (if you use that, 1.2 is on the way...). If you're using 1.1/develop, see http://fueldevdocs.exite.eu/classes/markdown.html We're using the Markdown Extra parser from http://michelf.com/proj…
Comment by
WanWizard
March 2012
permalink
Display specified view if not logged on
Having a parent router isn't a bad idea, but that will add some overhead while not a lot of people would need this. So it is not part of the default Controller or Controller_Template. It is better to create a layered base controller structure,…
Comment by
WanWizard
March 2012
permalink
Formatting by storing HTML in MySQL, FuelPHP output encoding
For the Fuel Depot project we're going to use Markdown for all documentation, comments, blogs etc. FuelPHP has a markdown parser available as part of the core, and there are plenty of WYSIWYG editors available to make it easy for your users to…
Comment by
WanWizard
March 2012
permalink
Display specified view if not logged on
No, this is how it should work. You need to use call_user_func_array() because you want to pass the params unaltered.
Comment by
WanWizard
March 2012
permalink
Load module config file automatically when route into module
I have the base controllers in app/classes/controller (as they are global to my apps). If it's called Controller_Base, it should be in a file called base.php. Note that if you use this in modules, know that Controller_Base lives in the global…
Comment by
WanWizard
March 2012
permalink
upload pdf file on the admin
I assume this is on "Model_Newsrh::add(Upload::get_files());", which is your model.
Comment by
WanWizard
March 2012
permalink
Database selection
As said, it will merge the generic one with the environment one. If you check both (as they are by default), the generic one contains all global definitions, including the driver to be used. The environment one only defines the database (the PDO ds…
Comment by
WanWizard
March 2012
permalink
File Upload help / New to Fuelphp
Your form posts to "/upload", yet your action is called "create". Assuming that this action is in a controller called Controller_Upload, shouldn't you post to "/upload/create"?
Comment by
WanWizard
March 2012
permalink
Display specified view if not logged on
Use a base controller that extends Controller_Template. Add a router() method to that base controller. In that method, check if someone is logged in, and if not, switch the template to your login view, and call the action that powers it (deal'…
Comment by
WanWizard
March 2012
permalink
upload pdf file on the admin
Check your HTML output for errors. The first parameter of Form::file() is a fieldname, which seems to be missing here...
Comment by
WanWizard
March 2012
permalink
Database selection
If you're on 1.1/master (the release), that error message is correct, as PDO does not support list_tables() and list_columns(). This has nothing to do with environments. In 1.1/develop, for the list_columns() method a workaround is implemented…
Comment by
WanWizard
March 2012
permalink
Link users together
That depends on how you have defined your relations.
Comment by
WanWizard
March 2012
permalink
Database selection
The generic config file (config/db.php) and the environment file (config/your_environment/db.php) are merged by the Config class when loaded. If the result is not what you expect, maybe the environment selection failed. Dump \Config::get('db…
Comment by
WanWizard
March 2012
permalink
Load module config file automatically when route into module
Create a base controller for all controllers in the Blog module:
Comment by
WanWizard
March 2012
permalink
File Upload help / New to Fuelphp
I don't really understand what your issue is. The questions you asked where answered, and aren't any easier to solve in other frameworks. CI for example doesn't have anything in regards to form generation and upload processing, you…
Comment by
WanWizard
March 2012
permalink
Date format
That is what Jelmer explained. As format string you can use any format supported by strftime(), and some shortcuts that are defined in app/config/date.php (you can add more if needed).
Comment by
WanWizard
March 2012
permalink
File Upload help / New to Fuelphp
A form field of type 'file' is not an input field, can not be accessed through the Input class, and can not be validated. This is all the task of the Upload class, so once your form validation passes, you need to check if the upload was v…
Comment by
WanWizard
March 2012
permalink
Users roles
I would do that in a router() method which gives you direct action to the action called, but this should work too. I virtually never use an access system based on actual files (controller/method combinations). It gets complicated very fast, you nee…
Comment by
WanWizard
March 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,479
Last Active
8:14PM
Roles
Administrator