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
Observer after validation
I can't comment if I don't know what you do.
Comment by
WanWizard
August 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
Should be fixed now.
Comment by
WanWizard
August 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
The current composer.json file in the zip is de develop version, which contains references to the different fuel repo's. Which means that if you run a composer update, composer is going to complain about a missing .git folder. Solution is not…
Comment by
WanWizard
August 2014
permalink
Observer after validation
Depends on how you run validation. If you use the validation observer, it's defined in your model (most logical is on before_save), and you define your observer before it. If you run validation by hand, either by manually defining the rules i…
Comment by
WanWizard
August 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
If I take a clone of fuel/fuel, and run composer without --prefer-source, it installs 1.7.2 from zip. Hence my remark about the minimum stability. I'll have a look at that issue later. I didn't even know a zip file stored linux file permi…
Comment by
WanWizard
August 2014
permalink
Observer after validation
Yes, why not. Just define your observer before you run the validation, or define the validation observer. if that is all, a simple: $object->value = (int) str_replace('-', '', $object->value); would do the job (assuming …
Comment by
WanWizard
August 2014
permalink
Multiple form_radio with our label
The name of the radio button elements in a radio group should always be the same, so you can't use it in the label to reference it. You should pass an 'id' in the attributes of each radio button, and use the id in the "for"…
Comment by
WanWizard
August 2014
permalink
Problem Session Ajax
Very odd, because no matter what session store you define, the cookie will always be created. And it is the same code that does that. Only difference is whether or not in contains the session payload.
Comment by
WanWizard
August 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
Yes, I removed them. On purpose, as I said. That is true for all previous releases too... Unless you specific --prefer-source, it will use the release zips and not the repo. Minimum stability is not an issue there. The problem is not in packaging,…
Comment by
WanWizard
August 2014
permalink
use themes. How?
You're right, sorry. $theme->view() instead of View::forge() if you need the view lookup to be theme aware...
Comment by
WanWizard
August 2014
permalink
use themes. How?
If you pass the name of the view as a string, that name is used as the partial index. so you can access it on name later using get_partial. This indeed makes it impossible to use the same name multiple times. But instead of a string, you can also p…
Comment by
WanWizard
August 2014
permalink
use themes. How?
Correct, that is how you echo out a partial in your template. And yes, that would work, you can add multiple partials to a section. As to your template, I see that you use the Asset class, which is not theme aware. Instead of creating a separate as…
Comment by
WanWizard
August 2014
permalink
FuelPHP1.7.2 zip lacks core directory.
The zip file does not contain the .git repository folder, it never did. It would make the zip very big, and the assumption has been that if you want repositories, you know how git works. For those people cloning the repo is a lot quicker than fidd…
Comment by
WanWizard
August 2014
permalink
Relation of relation
Your $item here is not an instance of Model_Item, but of Model_Printqueue. So it should be echo $item->item->biblio->title; And that should work without problems. If the related object isn't loaded yet, it will be loaded dynamicall…
Comment by
WanWizard
August 2014
permalink
phpunit homebrew
So homebrew installs in a non-standard installation, so you need to create the oil.php config file, and add the two paths, one a FQFN to the Autoload.php, one a FQFN to the binary (or in your case the script).
Comment by
WanWizard
August 2014
permalink
phpunit homebrew
that doesn't matter, that is just a check whether you use phpunit.phar or not. If you don't, it will try to load 'PHPUnit_Framework_TestCase' for which the path must be correct. what it calls (the binary, and in your case the s…
Comment by
WanWizard
August 2014
permalink
phpunit homebrew
This is what the code does. So you can create an 'oil.php' config file, and tweak that to make sure it loads what you want. $phpunit_command = \Config::get('oil.phpunit.binary_path', 'phpunit'); // Check if we might b…
Comment by
WanWizard
August 2014
permalink
error in Mustache
I was not talking about the composer.json of mustache, but the composer.json of FuelPHP, which is in your installation root (there where oil is, and the readme...).
Comment by
WanWizard
August 2014
permalink
use themes. How?
Not sure what you are echo'ing, and where. But say you have a view 'test' that contains Hello World Then with the chrome example from above, $theme->set_chrome('sidebar', 'chrome/rounded-corners', 'cont…
Comment by
WanWizard
August 2014
permalink
error in Mustache
If your composer setup is correct, you should have C:\wamp\www\alphacms\include\fuelphp\fuel\vendor\mustache\mustache\src\Mustache\Engine.php after installation of the mustache composer package. If not, your setup is incorrect. For my test, I have …
Comment by
WanWizard
August 2014
permalink
use themes. How?
"Chrome" is an encapsulation of the partial. It is often used in themes for for example CMS systems. The idea behind it is that the partial, generated by your controller action, contains the data (the body) of a second of the page, and th…
Comment by
WanWizard
August 2014
permalink
error in Mustache
You must be doing something wrong. I've added mustache to my composer.json, and ran a composer update: [hverton@catwoman] $ composer update Loading composer repositories with package information Updating dependencies (including require-dev) …
Comment by
WanWizard
August 2014
permalink
error in Mustache
I think the idea is that you add it to the composer.json, and install it through composer. It doesn't work when you add it manually to apppath/vendor, the autoloader will not find classes in there. I think it is already in there under suggesti…
Comment by
WanWizard
August 2014
permalink
error in Mustache
Install Mustache?
Comment by
WanWizard
August 2014
permalink
Overrule install task
All tasks are in the same namespace, so they have to have a unique name across the entire app (including core and all packages).
Comment by
WanWizard
August 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