Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 13 07:05

    jcheron on master

    [skip ci][javadoc] fix URequest (compare)

  • May 12 23:47

    jcheron on master

    [skip ci][fix] sonar in URequest (compare)

  • May 05 22:27

    jcheron on 1.3.11

    (compare)

  • May 05 22:27

    jcheron on master

    Update CHANGELOG.md (compare)

  • May 05 22:24

    jcheron on master

    update async servers with publi… (compare)

  • May 05 21:34

    jcheron on master

    [skip ci][http] update _parseUR… (compare)

  • Apr 28 11:51
    gracite closed #196
  • Apr 28 11:47
    gracite commented #196
  • Apr 27 22:54
    jcheron commented #196
  • Apr 27 15:35
    gracite assigned #196
  • Apr 27 15:35
    gracite opened #196
  • Apr 27 15:18

    jcheron on master

    [skip ci] `setIsolationLevel` f… (compare)

  • Apr 25 00:10

    jcheron on master

    [skip ci][di] Injected attribut… (compare)

  • Apr 24 22:57

    jcheron on 2.4.12

    (compare)

  • Apr 24 22:55

    jcheron on master

    [skip ci] update for 2.4.12 (compare)

  • Apr 23 17:43

    jcheron on master

    [skip ci]{orm] add count to Ab… (compare)

  • Apr 23 01:55

    jcheron on 2.4.9

    (compare)

  • Apr 23 01:52

    jcheron on master

    Update UIService.php (compare)

  • Apr 23 01:47

    jcheron on master

    add actions in toast update aj… (compare)

  • Apr 20 15:41

    jcheron on master

    [skip ci] update CHANGELOG for … (compare)

JohnOnam
@JohnOnam

I tried creating the project using composer create-project phpmv/ubiquity-project projectname, and that works.

The error comes from using Ubiquity new projectname

J-C HERON
@jcheron
Hi @JohnOnam
I don't know what happened.
Logically, creating a new project (with Ubiquity new) adds the Ubiquity-annotations package if you are in php 7, or Ubiquity-attributes if you are in 8.
Obviously, none of these packages have been added so that you have this error.
Maybe you changed your php version, without updating the devtools ?
with
composer global update
JohnOnam
@JohnOnam
Oh! Yes I switched php versions without updating composer. Have just done that , and now it works. Thanks.
Ubiquity is the BEST.
Can I use it with PHP 8.0.15?
J-C HERON
@jcheron

Can I use it with PHP 8.0.15?

yes, no problems

Laurent Chartrain
@l.chartrain_gitlab
Hello,
I'm interested with ubiquity framework but does it handle easily LDAP/AD authentication ? I can't find anything in the doc.
J-C HERON
@jcheron
Hi @l.chartrain_gitlab ,
No, for the moment Ubiquity does not offer anything specific in this area, but you can use it with the external libraries of your choice.
symfony/ldap for instance
J-C HERON
@jcheron
Alexandru Bogdan IATAN
@CoAmA
Hello again
J-C HERON
@jcheron
Hello @CoAmA
J-C HERON
@jcheron
if you have any questions...
Alexandru Bogdan IATAN
@CoAmA
No question, just wanted to drop and say Hi, is there any thinkg I can help you with? a bug or something ?
1 reply
younessof2m
@younessof2m_gitlab
Hello all, i have a question about the development of an ubiquity web app with apache on docker. I have some errors and i can't find any solution in the documentation... Ubiquity needs a string in $_GET['c'] but this variable is only set in the file .htrouter in .ubiquity folder when i launch the ubiquity serve command, but when i launch my web app with docker Ubiquity doesn't create a .ubiquity. Do you have any recommandation on how to solve this issue ?
J-C HERON
@jcheron
Hello @younessof2m_gitlab
You have to activate mod_rewrite apache module and to make sure that .htaccess files are interpreted by the server (AllowOverride) :
Example of Apache configuration used in Docker file :
LoadModule rewrite_module /usr/local/apache2/modules/mod_rewrite.so

<VirtualHost *:80>
    DocumentRoot /var/www/html/public
    DirectoryIndex /index.php
    <Directory /var/www/html/public>
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
younessof2m
@younessof2m_gitlab
@jcheron Thanks for you response, i have already found a solution.
Leonardo Allende Pasten
@alnux
Hi, the framework looks veri nice, i come from nette framework and there is a form class to build forms with field validation, crf, etc.... Here is (on framework) something like that??? Thanks
J-C HERON
@jcheron
Hi @alnux
if you want to modify model instances, you can use Crud controllers (see https://micro-framework.readthedocs.io/en/latest/scaffolding/crud.html).
If you just want to generate a form for adding/modifying an instance of model, you can use the DataForm class (see https://phpmv-ui.kobject.net/index/direct/dom-81).
If it's just a form, for modifying some data, it will be the HtmlForm class (see https://phpmv-ui.kobject.net/Index/direct/ss-item-53).
Leonardo Allende Pasten
@alnux
error on admin panel --> controller, im using the quick-start youtube video (https://www.youtube.com/watch?v=CTAXuyPf34g), and when i go into http://127.0.0.1:8090/Admin/Controllers it show me "get_class(): Argument #1 ($object) must be of type object, array given" instead controller page (ss https://prnt.sc/C3lrSTxddKcb) im on mac php 8.0.8
2 replies
hope helps
Leonardo Allende Pasten
@alnux
i forgor ubiquity version 2.4.11 ( https://prnt.sc/9VHnfmcgKMoA )
Leonardo Allende Pasten
@alnux
im traying to use ubiquity demos, but with "auth-project" there is a error of compatiblility
the error is the next
Fatal error: Declaration of controllers\BasicAuthController::_getBodySelector() must be compatible with Ubiquity\controllers\auth\AuthController::_getBodySelector(): string in /Volumes/ALLEN-FILES/allenap/Documents/TRABAJO HOSTING/___NUEVO_CP/PRUEBA_UBIQUITY/httpdocs/ubiquity-demos/auth-project/app/controllers/BasicAuthController.php on line 85
J-C HERON
@jcheron
I need to update this project, it has remained in an earlier version.
Leonardo Allende Pasten
@alnux
hi, is there new events names on DAO becouse on list are 4(GET_ALL, GET_ONE, UPDATE, INSERT) names but on example shows AFTER_UPDATE, this on guide https://micro-framework.readthedocs.io/en/latest/events/index.html.
im reading about Ubiquity and it is really nice. maybe a step by step blog tuto guide will be more helpfully to understand this great framework
1 reply
Leonardo Allende Pasten
@alnux
hi again, on Admin WebTools there is a option create new Domain (DDD) but nothing else... after that i cant find any reference to create a controllers into domain, can i do that ??? please iluminate me becouse i cant find too anything on docs, by the way on Admins WebTools i cant create controllers subfolders like auth folder on auth-project of Ubiquity-Demos.
1 reply
Leonardo Allende Pasten
@alnux

hi there again with demos, on richclient-project and others that have db, this does not have the scheme of them. another thing is when i delete model cache it does not work anymore showing me error

foreach() argument must be of type array|object, bool given

here a ss https://prnt.sc/ifpL5LI931Vw

by the way is there any way to not cache the models, becouse on front if i recently insert data, on the front just show an hour ago inputs

16 replies
Leonardo Allende Pasten
@alnux
a bravo for the team of this interesting framework, could I suggest something..., place a forum!!! to help new people interested in this framework and above all to prevent developers from repeating help, since people (myself included) don't see more than 6 months in the past, I'm talking about chat..... ups i don't ask if there is a forum first, if there is one where is it?? but if there is not, it would be good idea implement it to save time and have a knowledge base
J-C HERON
@jcheron
Thanks @alnux !
No, there is no forum, but in the meantime, you can use the github issues, it's one of the ways for users to find help on a problem already encountered by others.
J-C HERON
@jcheron
image.png
J-C HERON
@jcheron
image.png
Leonardo Allende Pasten
@alnux
It just can shows on phpstrom??? AND on eclipse??? ...
Question can be it implemented on ubiquity debugger???
J-C HERON
@jcheron
image.png
Eclipse does not show anything
And for the Ubiquity debugger, it is mission impossible, since the php execution does not generate any warning or error.
Leonardo Allende Pasten
@alnux
There Is a ubiquity benchmark without swoole or workerman??? I'm be curiosly
On the second link, you must make a choice in the list to update the results
Leonardo Allende Pasten
@alnux

hi again on fileUpload-project i did 2 changes one fix error comenting on FileUploadTester.php becouse with this causes exception error

the controllers 'controllers/upload' does not exist
https://prnt.sc/OspwjNjiRXjy

//#[Route('test/{id}')]
      //public function testRoute($a=1){
//}

2.- i add allowed mime type after new UFileUpload object, line 27 of FileUploadTester.php

public function upload() {
        $upload = new UFilesUpload();
        $upload->setAllowedMimeTypes(['txt'=>'text/plain','png'=>'image/png']);
.......
....

I think the exceptions in the debugs are not very informative, since it is difficult to identify the root of the problem.
There are also overlapping errors with the views
https://prnt.sc/-mUvhGK0sNBI

1 reply
Leonardo Allende Pasten
@alnux
Hi there Is a auth-acl-project demo???
J-C HERON
@jcheron
no, not yet, but it can be done
Leonardo Allende Pasten
@alnux
UPS, thanks
J-C HERON
@jcheron
Hi @alnux
That' s the example of the Acls with authentication.
https://github.com/phpMv/ubiquity-demos/tree/master/auth-acl-project
Leonardo Allende Pasten
@alnux
Wow You are a crack. I want to Build an app, but right now I'm learning ubiquity that looks great; by the way i was reading about DDD AND hexagon architecture AND there Is a thing that i want to know about create a uuid on model instead of autoincrement of dB, how can i implement this on ubiquity ???. Sorry about my spelling.
J-C HERON
@jcheron
The ORM does not natively manage UUIDs.
Then you have 2 solutions:
Use id obfuscation, which requires obfuscation before URL generation and deobfuscation before the base operation.
or
Add an extra field in the table, storing a random number or string, which will be used in URLs and database operations.
Leonardo Allende Pasten
@alnux
On ubiquity need always a autoincr id?? So what if i want to first generate a uuid4 with https://github.com/ramsey/uuid by example AND after that save to dB??
2 replies
Leonardo Allende Pasten
@alnux
So why on DDD with hexagonal architecture recoment this?? i've been reading this combination (DDD and hex) and frankly it seems to me a lot of code in order to decipher the business logic. the language ubiquo in the development team seems to me something from before was already doing on big projects and I also encourage you to say in small developments; but that segment too the code and in large developments can also turn in a maze. i hope you understand what I mean :)
2 replies