How to turn off the new codeigniter 4 error reporting - codeigniter

Is there a way to turn off the fancy error reporting in Codeigniter 4?
I prefer the classic way.

That is handled by the system/debug/Exceptions.php
At the moment there's no way of turning that off with just a setting. One way you can do what you want is to just edit the app/views/errors/html/error_exception.php to display just what you want and not all that.

Related

Any clean way to avoid gstatic in Laravel?

I have the latest Laravel (8.5.9). I've noticed all my visitors will use gstatic (Google site for some caching), but I would like to avoid this behavior (I don't want to use any other web site or application than mine).
Gstatic is called by Illuminate (/vendor/laravel/framework/src/Illuminate) and also some fonts (/public/assets/fonts/google.css).
Please, do you have any clue to avoid this behavior ? Thank you.

Laravel 5.3 - Is there bulid in way for form tampering protection

Is there any built in way to protect Forms from tampering, particularly adding or removing inputs to/from the form, from client side or editing the values of hidden fields ? I am coming from cakephp background and there is nice built-in security feature
https://book.cakephp.org/3.0/en/controllers/components/security.html#form-tampering-prevention
Please note, that I know the approach how it is being done in cake, and I understand that it can be manually implemented, the question is, is there any built-in way to go with.
Thanks
Laravel validation can be used to make sure what fields are sent and what the content of these fields looks like.
There is also csrf protection that is enabled by default to make sure forms cannot be sent by another website.

Joomla : Want to build custom form with my own back hand code

I just want to create custom html with good css form with my own php as backhand code and javascript for validation.. Is there any extension for this?
I have seen few extensions but none of them allows me to add my own php backhand code.
Thanks
If you are not going to use Joomla's framework, then you may as well build the form outside of joomla and insert it into the article via an iframe (you may need to change the editor's permissions to allow you to do this).
It is worth looking into using the framework properly, however, as it does have easy-to-use mail classes and actually makes things easier when you get your head around it.
(Though to answer your actual question - this module appears to allow you to add raw php http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/3668 )

Confused with MVC scaffolding

I'm learning MVC3. There is something I'm trying from many hours and now I think I'm totally lost.
I created a database first, then generated Models from it. Now I wanna know if it is possible to use scaffolding to generate a model with CRUD views? I tried several things. Firstly the error- Unable to get metadata.
Googling it first misled me that there is something wrong with EF4.x. Reinstalled it and wasted time. Then I tried Automatic Code Generation feature but its giving ambiguity errors between previously generated classes.
Is it even possible to do what I'm trying? How? Or do I have to code for the views?
Go to your controller method, right click and add your view, You will need to check strongly typed-view then select the model and the scaffold template.
If you still get an error, make sure you decorate the primary key with the attribute [key], also make sure all properties have the same name as your DB field or you will get an error.

Can jqGrid downgrade if javascript is didabled?

I am currently evaluating grid components for our new portal project. I came across the jqGrid which I find quite interesting. One requirement I have is that the portal should work with javascript switched off.
I found this article on StackOverflow but it does not answer the question. Does anyone can tell me how jqGrid is dealing with this?
In the question which you referenced I could fine the following
Can we create the table using C# and then lay the JS over the top for
extra functionality?
Is it what you plan? Do you want that your portal works without JavaScript and produce pure HTML tables which hold the data without any Ajax requests, but in case of the user do has JavaScript on you want to use JavaScript, jQuery and jqGrid?
In the corresponding answer it was suggested to use tableToGrid function to convert the existing HTML table inclusive the contain to the jqGrid. It seems me the way which you can also follow. Why you are not satisfied with the answer?
To tell the trust I have no customers more where JavaScript is switched off. Do you want to develop the portal for some mobile devices or some other special endpoints which has no JavaScript? In my opinion JavaScript have to be on to be able to use Internet for the better productivity. So the portal which work without JavaScript will have the interface which is not up to date now. Either you have very special customer environment or the requirement seems me too hard.

Resources