-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you plan to support Grocery Crud Enterprise Edition? #13
Comments
Thanks @RudyardKipling :) |
I think now i have some reasonable errors after setting up the library properly. :) |
I have been trying to integrate Grocery Crud Enterprise with Codeigniter framework by the way. |
@RudyardKipling 403 on the screenshots you've sent for reasonable errors... |
I am trying tests for grocery crud standart example database. "Type: PDOException How can i solve this? I solved this, i had to check crud before rendering. this is ok. :) |
For 1st matter above i mentioned, i recognised something. The problem is about check function in Login_model.php. Table name cannot be unserialized correctly. Because of this, every condition about crud returns false and it behaves like there is no permission. If you can tell me how to debug crud variable, i can find a way. |
How many odds issues... |
I know the issues i wrote looks like a mess :s I just want to make Login-GroceryCrud work for GroceryCrud EnterPrise like it works perfect for GroceryCrud Community edition. The simple usage is enough for me. If i solve the 2 matters i wrote above, then everything will be fine. Thanks for your kindness. :) |
Oh thanks man! I think @scoumbourdis will be happy for that. |
Hello guys, I would love to start using it in Grocery CRUD Enterprise and have an official example at the website. But as @portapipe already knows my time is very very limited and already promised him something that I still can't find the time to do. The good news is that everything is within a backlog so they will not be forgotten. The bad news is that my backlog is huge 😄 Currently working to finish the bootstrapV4 theme for grocery CRUD Enterprise that will be available probably this week (I will announce it in twitter) and at the same time I did finish creating a YouTube video (Which PHP Framework is best for you? 2018 update) and all of these on my public holidays (Orthodox Easter) but I like to work on these stuff so I am not regretting it :) |
Well that’s cool enough, built directly in the enterprise edition in the next future! |
@scoumbourdis If you could make an official example about Login-GroceryCrud it would be wonderful. |
@RudyardKipling comment the first $state declaration and change the second one as following:
and let me know if it works. |
@portapipe I have figured out that, there is no need to change unserialize or json_encode code. If I replace 'basic_db_table' with 'dbTableName' everything works fine. //$state2 = strpos($state,'basic_db_table":"'); $state2 = strpos($state,'dbTableName":"'); 1st problem i mentioned above is ok now. :) Now i am trying to save manage_persmissions. I get some javascript error. If i solve this, too. I will be very happy. :)) |
@RudyardKipling great work! |
Hey @RudyardKipling great work, Can you please copy the example that you did use at https://gist.github.com/ so it will be easier for me to create examples for Grocery CRUD Enterprise? Please just share your controller only as this is enough for people to understand. Regards |
@scoumbourdis I am using codeigniter framework. Theese are the files i edited for Enterprise Edition. You can reach Login.php's edited version from Login-GroceryCrud: Examples controller: Login_model.php from Login-Grocery Crud. I want to make something clear. I couldn't make work manage_permissions function from Login.php. I still need help for this. :) |
@RudyardKipling the error shown below tells nothing. You have to look inside the page you're calling and that throws error. A better debug can show the issue. I think is something related edited function names like "unset_edit/add/delete" or stuff like that. |
For the "manage_permissions" issue, after hours i have decided to use CommunityEdition for only "manage_permissions" function. Thats not a good way but somehow it is a solution. :D I will be using both Community and Enterprise Edition in my projects same time depends on the situation. Thanks for your kindness and helps. |
I just have to take a look on how the Enterprise Edition do stuff but with a bit of effort you could figure out by yourself :) |
Did you guys ever come up with a working login system for stand-alone Enterprise Edition or CodeIgniter package? |
Hi nyala1. |
Hi, and thanks for your unexpectedly quick response. I'm happy that this projects till has your attention as it could be really useful. :) The delay in my response is because I wanted to get it up and running before responding and I am stuck. I'm sure that I am doing something simple wrong as I have followed your instructions but I get a successful login message, "HI admin! You are Logged IN!" but then I get a model with, for starters, a parse error:" We can't process the response of the server. This is all we know about it: I've tried everything I can think of but it must be outside my abilities. Any help I can get from you would be greatly appreciated. I just need to be pointed in the right direction:) If you give me an email address I can send you a link to my sandbox so you can see for yourself. Regards, Marv |
Hi @nyala1 , |
Hi, I've worked on this for some time and cannot figure it out. I can tell you however that if I add the GCLogin code to the function I want to be protected it fails and if I don't add it everything works so seems it is at least related to your code. For example the following throws the error but if I remove your code it works as expected. I'm at a loss unless I'm adding your code incorrectly.? public function requests() if($this->login_model->isLogged()){
|
The code seems fine... |
I have tried the line by line debugging and we're good all the way through the penultimate line where we render it. If you look at the code below and look at where I have `public function requests() if($this->login_model->isLogged()){
}
//if I move the debug code here we get the error. //If you send me an email address I will send you a link to the sandbox |
A couple additional thoughts... Remember that this is GC Enterprise not community (although I can’t see where that would matter) All the existing code before adding GCLogin code was personally “Johnney Approved.” So I think it’s good. Given that the errors only present themselves after the output statement I am really confused. The error seems to be because of something returned in the Json return. Can’t inagine what that could have to do with your code but nonetheless if I remove your code it all works fine. Is there something so should have in your config file that could be wrong? Thanks for your continued help!! |
I don't think is a PHP version issue, so I think you can put some "return;" or "die;" in my library and model, just to make a line by line debug of the GCLogin library too. This is what I'd do. |
Hi, I am writing for people who has concerns about Grocery Crud Enterprise working with Login-Grocery Crud. If you want to use Login-Grocery Crud with Enterprise version, you just need to change check function in Login_model.php. I have the sample that working well with Enterprise: Only on Manage Permissions screen, i am using community edition and everything is fine. |
Thanks but could you please be a bit clearer? The code you provided doesn't
really illustrate where to make the change effectively, at least with my
abilities :)
Thanks!
ᐧ
…On Tue, Sep 18, 2018 at 5:59 PM RudyardKipling ***@***.***> wrote:
Hi, I am writing for people who has concerns about Grocery Crud Enterprise
working with Login-Grocery Crud.
I am using theese two for month, they are really very very good together.
With help of theese awesome 2 libraries, I am able to finish a project in a
day that can be finished in a week.
If you want to use Login-Grocery Crud with Enterprise version, you just
need to change check function in Login_model.php. I have the sample that
working well with Enterprise.
<script src="
https://gist.github.com/RudyardKipling/2c3e1a9f3b638f75c95ec0542018b542.js"></script>
On manage permissions screen, i am using just community edition and
everything is fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJBJ5cWu3u0X5EnJUQD5ndCl1VUTEifks5ucWyngaJpZM4TLdu5>
.
--
Regards,
M Steigman
|
I have the same problem : https://www.bylde.com/admin/users/test |
Hello,
I like this Login-GroceryCrud job. I have used this with grocery crud community edition and helped me a lot. Do you plan to support also Enterprise Edition? It would be amazing if you could. :)
The text was updated successfully, but these errors were encountered: