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
Release candidate 3 doesn't test well out of the box
1.1 is in feature freeze at the moment, expect a official release soon...
Comment by
WanWizard
October 2011
permalink
Release candidate 3 doesn't test well out of the box
Both were errors in the test, not in the framework code, and have been fixed in 1.1/develop. Result of 'php oil test': OK (251 tests, 202 assertions)
Comment by
WanWizard
October 2011
permalink
Poll: What PHP framework are you using?
Ok, so you did post this in every framework's forum.
Comment by
WanWizard
October 2011
permalink
Session destroy wont log out users
Does it work if you remove the redirect? Which browser are you using? IE for example has the habbit of cancelling all header processing when it sees a header redirect, which means cookie updates don't work (depending on the order in the header…
Comment by
WanWizard
October 2011
permalink
Design Help - Multiple Models Widget
Basically, everywhere were you can use a View object, you can also use a Viewmodel object. The Viewmodel allows you to add extra logic to your views, without adding clutter to your controllers (it's view logic, you don't want that replica…
Comment by
WanWizard
October 2011
permalink
Error when nesting views
You can't enable/disable the profiler dynamically, other then adding some code to the config file itself. The value is read and used long before any user code is executed.
Comment by
WanWizard
October 2011
permalink
Error when nesting views
Trying to get my head around what you are doing here. Where in this setup is your template? Your main request is to Controller_Ajax, which extends Controller_Wrapper, which extends Controller_Template. So this should be where your template exists. …
Comment by
WanWizard
October 2011
permalink
Error when nesting views
The way I see it: Controller_App extends Controller_Wrapper extends Controller_Template. Wrapper defines the page template using the structure of the template controller, and in the before of the wrapper controller you define the 'static'…
Comment by
WanWizard
October 2011
permalink
Fuelphp equivalent of CI's form_dropdown()
You don't, it's a form method, not a database access method. You will have to create a method in your model that returns the array that has to be used as input for the form::select() method.
Comment by
WanWizard
April 2011
permalink
Error when nesting views
If your template is served by Controller_Template, your index should not return the partial. Returning the view will be taken care of by the Controller_Template. You should assign the "admin/articles/index" view to the appropriate section…
Comment by
WanWizard
October 2011
permalink
Error when nesting views
I use a 'view root' for that. I have in my views directory folders called 'html', 'mobile', 'ajax', etc. In these folders, I have the same view files, but with different content. In my controller constructor,…
Comment by
WanWizard
October 2011
permalink
Error when nesting views
No output_filter defined, which means it will use the htmlentities() method of the Security class. Can you do a \Debug::dump($__data) in your wrapper view? It should list the array of all variables passed to the view...
Comment by
WanWizard
October 2011
permalink
Phil Sturgeon Codeigniter Template Library port to Fuel
I'm working on a package that will provide full theme, template and widget support, including support for chrome for both widgets and template area's. It will also allow you to query the template from the template, for example to check if…
Comment by
WanWizard
October 2011
permalink
Design Help - Multiple Models Widget
I would create a view that produces a single question set (your widget), and a viewmodel that does the processing to produce the question data (to abstract the logic from your controller, and to avoid having to create special models). From the cont…
Comment by
WanWizard
October 2011
permalink
Problem in extending form class . is this a bug?
Ah, never used that, I always use a button tag for that. Is it an issue that the empty value is part of the tag?
Comment by
WanWizard
October 2011
permalink
Problem in extending form class . is this a bug?
Doesn't form::input() generate an tag? I'm clueless why you want to use that with an image...
Comment by
WanWizard
October 2011
permalink
Error when nesting views
No, as said, it all works here. If it wouldn't, nobody would be able to pass any variable to a view. Phones would ring of the hook here if that would be the case! You don't have an error in your security output filter (in your config.php)…
Comment by
WanWizard
October 2011
permalink
Session destroy wont log out users
Just checked the session drivers, and ALL of them delete all data when you do a destroy: // reset the stored session data $this->keys = $this->flash = $this->data = array(); The static methods all use "Session::instance()", the …
Comment by
WanWizard
October 2011
permalink
Error when nesting views
This is not an issue that can be solved with a template controller. All that will do for you is autoload the 'wrapper' view. Which version of Fuel are you using? If you're going to use render(), know that your array contains string o…
Comment by
WanWizard
October 2011
permalink
Calling Classes via Variable
When you use the variable, the request to load the class arrives at the autoloader without the correct namespace prefixed. I tested this with a test class in the same file, which is obviously in the same namespace, and loaded, and even then the aut…
Comment by
WanWizard
October 2011
permalink
Calling Classes via Variable
Had some time to test this. You are right. When calling the class directly, PHP knowns the current namespace, and will load the class succesfully from that namespace. When you use a variable, that doesn't work, you HAVE to include the namespac…
Comment by
WanWizard
October 2011
permalink
Delete Cascade
Looks like you have constraints on the database level, which interferes with the way ORM handles cascading deletes?
Comment by
WanWizard
October 2011
permalink
PHPSecLib for Python?
You should be able to use https://github.com/dlitz/python-pbkdf2, but make sure you use the same parameters as are used by the Auth module: - 10000 iterations, - SHA256 as digestmethod, - use 'read(32)' as described in the readme to ma…
Comment by
WanWizard
October 2011
permalink
Multiple sites utilizing the same application, loading configurations from the database.
In default installations, the core sites one level up from the website's docroot. On my servers, I have a structure that has all docroots in /data/www/virtual (and then a folder per virtual host). I have a folder called /data/fuel, in which I …
Comment by
WanWizard
June 2011
permalink
validation match_pattern
match_pattern needs a full and compliant PRCE pattern, including delimiters. So try something like $val->add_field('pd',"Product",'required|match_pattern[#^[A-Za-z]+$#]');
Comment by
WanWizard
October 2011
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,370
Last Active
2:39PM
Roles
Administrator