Subscribe: Undolog.com
http://www.undolog.com/feed/
Added By: Feedage Forager Feedage Grade B rated
Language: Italian
Tags:
ansi  artisan command  attribute  bones  component  config file  config  crayon  custom  jquery  laravel  plugin  switch  wordpress 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Undolog.com

Undolog



Research & Development Blog



Last Build Date: Sun, 30 Jul 2017 07:03:06 +0000

 



WP Bones: a plugin framework for Laravel lovers

Sun, 30 Jul 2017 07:03:06 +0000

Today I’m excited to introduce you WP Bones, a plugin framework for WordPress written with Composer. WP Bones providing a set of tools and rules to facilitate the WordPress plugin. Also, the aim of Bones is to be able to write a Plugin such as Laravel Framework application. Sadly, WordPress architecture doesn’t currently support a complete composer/vendor […]



How to force ANSI color output in your artisan command

Fri, 17 Mar 2017 16:05:14 +0000

As you know, the php artisan command has the --ansi option to force the ANSI colour output. Anyway, if you have developed your artisan command, you may wish to display its output in ANSI colour mode, you can force it by using: [crayon-5a5db71e65e29859965470/] Of course, you may put the above code in your construct method.



A different way to handle the config in Laravel packages

Thu, 02 Mar 2017 10:36:21 +0000

When you are writing a Laravel package, usually you need a config file. Also, we will publish the config file in the “boot” method of the service provider. Then, in the “register” method you can get the configuration and use it when you create the instance of “Facade”. Let’s see a typical config file: [crayon-5a5db71e66732423056146/] […]



Laravel-Mix: avoid jQuery

Mon, 20 Feb 2017 16:58:38 +0000

If you are including jQuery by using a cdn such as https://code.jquery.com/jquery-2.2.4.min, Laravel Mix will emit an error when compiling your scripts. First of all, you have to copy on the root of your project a fresh copy of default webpack.config (see here for more details). Next, comment the following lines: [crayon-5a5db71e66b62312133394/]



WordPress: useful shortcode for your Custom Post Type

Sun, 05 Feb 2017 12:57:55 +0000

When you are using a Custom Post Type with its Custom Post Taxonomies, you could need to detect if a particular category is displayed in a post. So, I write a simple WordPress shortocode you can use to detect a particular category and then display the content of the post. To achieve that, you can add […]



How to create an object that acts like an array

Fri, 09 Dec 2016 20:00:43 +0000

From PHP 5.3 we can use some amazing new interfaces so magical. One of them is ArrayAccess. This interface provides a set of methods that we can use to implement the array behavior in a stdClass. Let’s see an example: [crayon-5a5db71e67389254582562/] How does it work? In the example above, I’ve already loaded some items in the […]



dangerouslySetInnerHTML stateless component

Fri, 04 Nov 2016 20:41:02 +0000

Of course, you know dangerouslySetInnerHTML attribute. This is very useful when you need to insert a custom own HTML in your page. …is React’s replacement for using innerHTML in the browser DOM. In general, setting HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS) attack. So, you […]



How to fix the click on nested anchor in Nightwatch JS

Fri, 04 Nov 2016 10:45:16 +0000

If you are using Nightwatch JS to test a website and you need to test an anchor nested in a unsorted list, be sure to add the name attribute in the anchor, otherwise, the click command will fail. Let’s see a simple case with an HTML markup like this: [crayon-5a5db71e67a46386125030/] The Nightwatch test below will […]



How to use your own props properly

Wed, 02 Nov 2016 20:13:44 +0000

Let’s say you are using the simple stateless component below: [crayon-5a5db71e67dc5564520245/] As you can see, we are using the {...props} special attribute to pass all props to the second div. Also, we are supporting an own attribute enableReading. This own attribute will be inserted into the div as well. So, you’ll receive the following warning message […]



ReactJS Switch Button Component

Sat, 22 Oct 2016 10:26:04 +0000

I have updated to version 2.0.0 my React Switch button control component. This is a Switch control built with and for React. In this new version, I’ve rewritten the component model with some alignment for ES6. Also, I’ve added the disabled feature. You can see a Demo example here. Installation You can use React Switch Button by […]