CodeIgniter Archives - CodexWorld https://www.codexworld.com/how-to-category/codeigniter/ Web & Mobile App Development Company Wed, 25 Apr 2018 12:25:33 +0000 en-US hourly 1 https://www.codexworld.com/wp-content/uploads/2020/04/favicon.ico CodeIgniter Archives - CodexWorld https://www.codexworld.com/how-to-category/codeigniter/ 32 32 91409221 How to Get Current Controller and Method Name in CodeIgniter https://www.codexworld.com/how-to/get-current-controller-class-method-name-codeigniter/ https://www.codexworld.com/how-to/get-current-controller-class-method-name-codeigniter/#respond Wed, 25 Apr 2018 12:25:33 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=3202 If you want to implement conditional code based on the class or method, you need to get current class and method name in CodeIgniter. Using the Router Class in CodeIgniter, you can easily get the current controller and method name. The Router class helps to parses URIs and determines routing.

The post How to Get Current Controller and Method Name in CodeIgniter appeared first on CodexWorld.

]]>
https://www.codexworld.com/how-to/get-current-controller-class-method-name-codeigniter/feed/ 0 3202
Issue Solved: CodeIgniter Use of undefined constant VIEWPATH https://www.codexworld.com/how-to/codeigniter-use-of-undefined-constant-viewpath/ https://www.codexworld.com/how-to/codeigniter-use-of-undefined-constant-viewpath/#respond Wed, 19 Jul 2017 11:26:05 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=2622 Use of undefined constant VIEWPATH issue occurs when you upgrade your existing CodeIgniter application version to CodeIgniter 3.x. The undefined constant viewpath issue can be easily solved by the following solution. Open the root's index.php file and specify the view directory to solve this issue.

The post Issue Solved: CodeIgniter Use of undefined constant VIEWPATH appeared first on CodexWorld.

]]>
https://www.codexworld.com/how-to/codeigniter-use-of-undefined-constant-viewpath/feed/ 0 2622
How to Remove index.php from URL in CodeIgniter https://www.codexworld.com/how-to/remove-index-php-from-url-codeigniter-htaccess/ https://www.codexworld.com/how-to/remove-index-php-from-url-codeigniter-htaccess/#comments Mon, 13 Mar 2017 15:00:16 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=2222 CodeIgniter uses the segment-based approach to design URLs human-friendly or seo-friendly. By default, the index.php file will be included with the URLs in CodeIgniter. But you can easily remove the index.php from the URL using .htaccess.

The post How to Remove index.php from URL in CodeIgniter appeared first on CodexWorld.

]]>
https://www.codexworld.com/how-to/remove-index-php-from-url-codeigniter-htaccess/feed/ 6 2222
How to change the timezone in CodeIgniter https://www.codexworld.com/how-to/change-timezone-in-codeigniter/ https://www.codexworld.com/how-to/change-timezone-in-codeigniter/#comments Thu, 25 Feb 2016 11:54:31 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=1292 PHP date_default_timezone_set() function is used to sets the default timezone used by all date or time functions. In CodeIgniter, the best place to set the timezone is index.php file of application root. Place the date_default_timezone_set() with your desired timezone in the main index.php file of your application.

The post How to change the timezone in CodeIgniter appeared first on CodexWorld.

]]>
https://www.codexworld.com/how-to/change-timezone-in-codeigniter/feed/ 6 1292
How to insert UUID in CodeIgniter https://www.codexworld.com/how-to/insert-uuid-in-codeigniter/ https://www.codexworld.com/how-to/insert-uuid-in-codeigniter/#respond Thu, 21 Jan 2016 15:38:57 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=1219 Universal Unique Identifier (UUID) in MySQL is used as row identity value (PRIMARY KEY). If you are working with CodeIgniter and want to insert UUID as row PRIMARY KEY, use this sample code to insert UUID as PRIMARY KEY into MySQL table in CodeIgniter.

The post How to insert UUID in CodeIgniter appeared first on CodexWorld.

]]>
https://www.codexworld.com/how-to/insert-uuid-in-codeigniter/feed/ 0 1219
How do you upload doc and docx files in CodeIgniter https://www.codexworld.com/how-to/upload-doc-docx-files-in-codeigniter/ https://www.codexworld.com/how-to/upload-doc-docx-files-in-codeigniter/#respond Fri, 15 Jan 2016 11:21:15 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=1205 Are you getting filetype is not allowed error? At the time of uploading doc or docx files with CodeIgniter upload library. You can easily fix this error by modifying mimes.php file in CodeIgniter. Change doc and docx mime types for solve the CodeIgniter doc and docx upload problem.

The post How do you upload doc and docx files in CodeIgniter appeared first on CodexWorld.

]]>
https://www.codexworld.com/how-to/upload-doc-docx-files-in-codeigniter/feed/ 0 1205