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
Sentry - Authentication Package
I'm not sure what has been done to it recently. I added a column called 'parent' to the groups table, but I now see it is defined in the migrations as varchar(200). You'll have to talk to dpetrie about that. The idea behind this…
Comment by
WanWizard
December 2011
permalink
Url Suffix Problem from Config
Ah, you are referring to Uri::create('assets/css/admin_login.css'); The idea is that you use the Asset class to generate your asset code, not to use Uri::create(). And this could well be an issue in 1.0. I know I fixed this issue, but …
Comment by
WanWizard
January 2012
permalink
Problem with implements SMARTY
The parser doesn't work that way. It extends the View class to support parsers, and uses the defined extension to determine which parser to load. So your method should be: public function action_index() { return Response::forge(View::forge…
Comment by
WanWizard
January 2012
permalink
Url Suffix Problem from Config
Can you give a code example in which that happens? Because I have a url_suffix defined here too, and no problems with assets...
Comment by
WanWizard
January 2012
permalink
packages' namesapce
You are are completely free from selecting any namespace you want. For packages, it doesn't have to be \packagename, you can make it \this\that\the\other\package if you want. But you can not use \Fuel, this is reserved for the framework.
Comment by
WanWizard
January 2012
permalink
Set template from within a controller
Yes, you can, but not this way. The Controller_Template() processes the $template property in it's before() method, so by the time your action is called, the template view is already loaded ($this->template will contain a view object). But …
Comment by
WanWizard
January 2012
permalink
hide public in url
The FuelPHP file structure is designed so that public is your docroot, and everything else is outside the docroot. In this case everything is inside the docroot, so having a separate public folder is useless. Copy the contents of the public folder …
Comment by
WanWizard
January 2012
permalink
How to pass data to shared view where data is once read with ORM or queried with DB::select?
Well, it's your choice to retrieve data in different formats. Alternative is to deal with this in your model, and make sure the results are returned in the same format. But in the end, whether you do it in your model, controller, viewmodel or …
Comment by
WanWizard
January 2012
permalink
How to pass data to shared view where data is once read with ORM or queried with DB::select?
Use a Viewmodel to unify the data? As to your second question, check Orm/classes/query.php so see what exactly is supported.
Comment by
WanWizard
January 2012
permalink
When inserting the ORM doesn't validate my data
If you want to use the validation within the model, you'll have to configure the validation observer. For more information, see http://docs.fuelphp.com/packages/orm/observers/included.html#os_validation
Comment by
WanWizard
January 2012
permalink
coding standards and closures
Absolutely right. Which is now corrected.
Comment by
WanWizard
January 2012
permalink
Change view in ViewModel
The Viewmodel class processes the view to be loaded in it's constructor, so there's not a lot you can do there since it either loads the defined view, or it automatically determines the view name if none is specified. In all cases, it the…
Comment by
WanWizard
January 2012
permalink
coding standards and closures
The standard is to have the opening brace on a new line. Everywhere. Afaik there are no exceptions.
Comment by
WanWizard
January 2012
permalink
Bug: DBUtil::create_index
Please create an issue for this on http://github.com/fuel/core/issues.
Comment by
WanWizard
January 2012
permalink
Is there something similar to Kohana's $orm_model->loaded property?
No. is_new() is true when an object doesn't have a primary key, i.e. is has never been saved before. That includes an "empty" model. If you find a record, is_new() returns false as the object has a primary key. If you do a find and y…
Comment by
WanWizard
January 2012
permalink
Current Roadmap for 1.1
Yes. There is no real roadmap for 1.2. We're working on the basics of 2.0. I agree we need to update the roadmap for that. Whether the next one will be 1.2 or 2.0 (or even 1.1.1) will depend on the progress in development. If we have new featu…
Comment by
WanWizard
January 2012
permalink
Sentry - Authentication Package
I think the statement was related to the database I/O within the sentry package. It needs to work wether or not you have the ORM package installed. Within your application, these are just tables that are part of your application, and there is no re…
Comment by
WanWizard
December 2011
permalink
scaffolding with enum
field_name:enum[value1,value2]
Comment by
WanWizard
January 2012
permalink
403 permission issues manual install osx
That is usually a rights issue on the server, and has nothing to do with FuelPHP. Check if the user that runs your webserver has access rights to all files in the docroot.
Comment by
WanWizard
January 2012
permalink
Extend & replace module controller and view
That is what extending does, yes. If you want to route to a different controller, you'll have to modify the route.
Comment by
WanWizard
January 2012
permalink
Sentry - Authentication Package
ORM requires an auto_increment primary key. You may call it what you like, but 'id' is preferred. You can just add it to the metadata table. As its value is auto generated, it won't bother Sentry, but it allows the ORM model to work …
Comment by
WanWizard
December 2011
permalink
403 permission issues manual install osx
The docroot of the virtual host should point to the location of the index.php file, usually /public within the zip. Unlike with CI, FuelPHP's "system" files are outside the docroot. The .htaccess file that is already in there works w…
Comment by
WanWizard
January 2012
permalink
Extending Core\Asset or adding a domain
I've just checked the code. The Asset class currently does not support a remote assets instance. It always checks for the file locally, unless the filename itself contains a scheme. Please create an issue for this on http://github.com/fuel/cor…
Comment by
WanWizard
January 2012
permalink
Observer for before_get or similar?
Afaik that doesn't exist. Please add a feature request for this at http://github.com/fuel/orm/issues.
Comment by
WanWizard
January 2012
permalink
Is it bad pratice to pass ORM objects (or other complex objects) to views?
I personally seldom pass ORM objects to views. I use the 'form' key in the models properties settings to define the generic definition of each column in the form (like the type of field, on forms or not, etc). I also have a method in my m…
Comment by
WanWizard
January 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,374
Last Active
7:38PM
Roles
Administrator