Posts by Caio Moretti • 115 points
3 posts
-
5
votes7
answers58283
viewsA: Regular expression for e-mail validation
Two expressions that I use without problem are: "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+).(\.[a-z]{2,3})$" "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$" Thus: <script…
-
3
votes2
answers401
viewsA: In Magento how to add class in list depending on the attributes to be displayed?
Well, let’s take a few guesses so we can show a viable code. <?php $produtos['tipo1'] = [ // Produtos tipo um ]; $produtos['tipo2'] = [ // Produtos tipo dois ]; $produtos['tipo3'] = [ // Produtos…
-
2
votes2
answers377
viewsA: Create a query inside a function file in the Libraries folder and not in the model as suggested
So I’ve been developing systems with the IC for a long time, and my answer would be that it depends on what you’re doing. The first suggestion, what I use, is to return the user’s privacy at the…
codeigniteranswered Caio Moretti 115