# |
Dec 18th 2017, 16:58 |
hmic |
joop: what is your file called, with path relative to src? |
# |
Dec 18th 2017, 16:58 |
joop |
i dont understand why this still looking for in the Model\Table |
# |
Dec 18th 2017, 16:57 |
joop |
but still Call to undefined function App\Model\Table\ValidPoint() |
# |
Dec 18th 2017, 16:56 |
joop |
i try to call like this https://pastebin.com/8m3nh8L9 |
# |
Dec 18th 2017, 16:51 |
joop |
i dont understand why this still thinks as a table validation rule |
# |
Dec 18th 2017, 16:51 |
joop |
i also copied the rule file to src/Model/Rule folder |
# |
Dec 18th 2017, 16:49 |
joop |
it is my costume validation rule |
# |
Dec 18th 2017, 16:48 |
joop |
well its not a core,just thought it will be easier to link |
# |
Dec 18th 2017, 16:47 |
neon1024 |
This is a class namespace, http://php.net/manual/en/language.namespaces.rationale.php |
# |
Dec 18th 2017, 16:47 |
neon1024 |
Note here `$validator->setProvider('custom', 'App\Model\Validation');` |
# |
Dec 18th 2017, 16:47 |
neon1024 |
When I linked you to the book 4.5 hours ago, I kind of assumed you’d read it |
# |
Dec 18th 2017, 16:46 |
neon1024 |
Did you mean to use a namespace, or a file path or what? |
# |
Dec 18th 2017, 16:46 |
neon1024 |
What even is that? |
# |
Dec 18th 2017, 16:46 |
neon1024 |
CORE?! |
# |
Dec 18th 2017, 16:45 |
joop |
i add this too $validator->setProvider('rr','CORE\src\Model\Rule'); |
# |
Dec 18th 2017, 16:45 |
joop |
\validationruleName() |
# |
Dec 18th 2017, 16:44 |
joop |
Call to undefined function App\Model\Table\ |
# |
Dec 18th 2017, 16:44 |
joop |
however i definied the provider for costume validation rule i still get this error: |
# |
Dec 18th 2017, 16:38 |
birdy247 |
and upgraded ubunto |
# |
Dec 18th 2017, 16:38 |
birdy247 |
we both follwed the install instructions |
# |
Dec 18th 2017, 16:38 |
birdy247 |
@bravo-kernel mmm, myself and another user have the same thing |
# |
Dec 18th 2017, 16:37 |
bravo-kernel |
@birdy247 nope, using it all the time |
# |
Dec 18th 2017, 16:33 |
rafael.junqueira.sant |
@admad :clap: working as expected now. Lets have a beer sometime. |
# |
Dec 18th 2017, 16:08 |
birdy247 |
I get an unknown command |
# |
Dec 18th 2017, 16:08 |
birdy247 |
@bravo-kernel has the cakebox command been removed from cakebox |
# |
Dec 18th 2017, 16:02 |
birdy247 |
yea, we are working in middleware before the router is fired |
# |
Dec 18th 2017, 16:02 |
hmic |
birdy247: about anywhere, as long as its executed before fired. bootstrap.php is a rather save place ;-) |
# |
Dec 18th 2017, 15:53 |
em. |
to answer my own question. Setting ‘quoteIdentifiers’ to true on test-connection fixed it for now… |
# |
Dec 18th 2017, 15:53 |
birdy247 |
hmic and that would need to be in bootstrap? |
# |
Dec 18th 2017, 15:41 |
hmic |
yes |
# |
Dec 18th 2017, 15:40 |
birdy247 |
hmic like this ? \Cake\Event\EventManager::instance()->on(...); |
# |
Dec 18th 2017, 15:40 |
em. |
Hello! Is “key” a reserved keyword? My fixture fails because of a db-field named “key”: “Unable to insert fixture… Syntax error or access violation: 1064 You have an error in your SQL syntax” |
# |
Dec 18th 2017, 15:38 |
hmic |
and make sure the event got registered before you want to trigger it! |
# |
Dec 18th 2017, 15:38 |
hmic |
matt: to which eventmanager is the eventlistener connected? - needs to be the global one |
# |
Dec 18th 2017, 15:36 |
matt |
Is it possible to trigger an event outside of a table, view or controller please? I tried to use the EventDispatcherTrait but the listener doesn't seem to pick up the event |
# |
Dec 18th 2017, 15:33 |
danishkhan3621 |
thanks @hmic (IRC) |
# |
Dec 18th 2017, 15:29 |
hmic |
if you want to change it, just unlock the hidden field(s) |
# |
Dec 18th 2017, 15:29 |
hmic |
danishkhan3621: if you dont change the value hidden is fine |
# |
Dec 18th 2017, 15:21 |
danishkhan3621 |
@hmic (IRC): without hidden it is working is there any other way to use hidden fields or some other concepts in cakephp 3 |
# |
Dec 18th 2017, 15:20 |
hmic |
and you are not about to change it, like the message says. try without hidden to verify |
# |
Dec 18th 2017, 15:19 |
hmic |
danishkhan3621: the value goes into the same options array as the type IMHO |