7-Views - Page 2 of 6 - Developers Blog

How to use a sub folder in default controller route in CodeIgniter 3

Posted by
January 22, 2019

While setting $route[‘default_controller’] without subdirectory it is working but I wanted to change it inside subdirectory and it’s not working. Here is the solution to the issue. Please create a file in the insideapplication/core directory. the file name would be MY_Router.php paste the following content inside the file “MY_Router.php”, it will work like a charm.   […]

read more

Widgetizing theme in wordpress

Posted by
December 24, 2018

Widgetizing is creating widget area in your theme. For this you need to add below code inside your functions.php file function mytheme_widgets_init() { register_sidebar( array( ‘name’ => ‘Sidebar Right’, ‘id’ => ‘sidebar_right’, ‘before_widget’ => ‘<div>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h2>’, ‘after_title’ => ‘</h2>’, ) ); } add_action( ‘widgets_init’, ‘mytheme_widgets_init’ ); Once added look into […]

read more