v 1.3.3 grocery CRUD - an automatic Codeigniter CRUD |
[eluser]Matalina[/eluser]
I see in the documentation that you can't turn crsf on. Why can't you? What problems does it tell you? Just the typical You can't do that action? You know that's relatively easy to fix. I have crsf on my site turned on, forgot that grocery crud didn't like it. and I went looking into the views. The reason I got the error I got was because the crsf token was being created. Easy fix: Code: <?php instead of Code: <form action='<?php echo $update_url?>' method='post' id='crudForm' autocomplete='off' enctype="multipart/form-data"> Now if this causes something else to go wacko then that may not help, but the error I got was easy to fix. I'm having other issues but I think it's a theme issue when I moved from my test site to my internal intrant net application with sign on templates and a lot of other things going on. *** nevermind. It was only working because my code was doing something else. and messing up gc's code.
[eluser]web-johnny[/eluser]
Actually I saw that in every ajax post I have to add another post field that is required to "authorize" the crsf. I just don't have so much time to look at it and I forgot it. A quick fix if you want to have both to your project (Grocery CRUD and crsf) is: go to application/config/config.php and add : Code: list($tmp, $first_segment) = explode("/",$_SERVER['PATH_INFO']); This actually inactivates the csrf_protection only to "admin" controller. You can of course change this idea to your needs. If you have a good authorization library I don't think you will have a problem with this. The most common problems for the csrf_protection is to frontend website . Some auto bots, hacks e.t.c.
[eluser]KaBaDaBrA[/eluser]
If you are looking to use dependent dropdown boxes - have a look at Categories and Sub-categories Once again awesome work web-johnny - loving GCRUD!!!!! :cheese:
[eluser]yepwingtim[/eluser]
Hi Web-johnny, Is it possible dynamically add form elements in a single form? such as this. http://www.randomsnippets.com/2008/02/21...avascript/ I need this so when a client comes in I can go to "edit" mode and add another "date" that they came in. thanks
[eluser]web-johnny[/eluser]
No till this version. I am sorry. I have it though in my long-term plans.
[eluser]goFrendiAsgard[/eluser]
[quote author="yepwingtim" date="1332869864"]Hi Web-johnny, Is it possible dynamically add form elements in a single form? such as this. http://www.randomsnippets.com/2008/02/21...avascript/ I need this so when a client comes in I can go to "edit" mode and add another "date" that they came in. thanks[/quote] I think this is another "view" of "master-detail" form (and it is not easy developing that). As long as I know some people still works in master-detail feature. Maybe "additional-input" will be added later after "master-detail" function completed
[eluser]Matalina[/eluser]
How can I unset the jquery file in grocery crud. I want to use the latest as it has the on function. I don't want to have to rewrite my code for on set of pages.
[eluser]web-johnny[/eluser]
[quote author="Matalina" date="1334242989"]How can I unset the jquery file in grocery crud. I want to use the latest as it has the on function. I don't want to have to rewrite my code for on set of pages.[/quote] This is simple: Code: $crud->unset_jquery();
[eluser]Matalina[/eluser]
yeah I did that, it's not working. It's not even inserting the correct jquery file from the theme. I'm using the flexigrid theme and it's inserting the datagrid(?) theme's js. I have unset_jquery() right after the theme call and it still sends it. |
Welcome Guest, Not a member yet? Register Sign In |