Add menu in the admin panel
Hello, the point is that when I add a new directory through the admin area, it is not added, the problem is in Model, it also does not send a request to the database. Code: //---SAVE PAGE region...
View ArticleFireSessions - making the CI3 Session lib available as a standalone component
Hello, guys! This is my first attempt to make one of the greatest CI3 libs available as a standalone, separate & installable component: the Session library, available under the name of...
View ArticleMigration Class Names
I'm having an issue with CI 3 migrations and I'm wondering if anyone else has run into this and how they fixed it. If I have the following migration file: Code: 20121031100537_alter_blog.php Then I...
View ArticleHow do I have a global array in __construct() ?
I have this code. Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Main extends MY_Controller { public function __construct() { parent::__construct();...
View ArticleProblem with form validation sets of Rules
I'm using `form_validation.php` in `application/config/` folder with subs arrays PHP Code: $config = array('siga_login' => array(array( "field" => 'usuario',"label" => '"Usuário...
View Article[solved] Show user with id
Hello I have another problem i want to show a user page like : monsite.com/user/1 but i can't i search for several hours on forum etc ... My code : It my user controller PHP Code: public function...
View ArticleController method's parameter returns NULL?
Hi all, I've tried pretty much everything and can't get the 'home' page to load with http://localhost but only with http://localhost/home The code below is a test. http://localhost <= loads the...
View ArticleRoutes From Controller
Can you image create slug in a controller, Just adding: PHP Code: /*** @route:thisismyslug*/function slug(){ echo "url thisismyslug";} or PHP Code: /*** @route:thisismyslug/(:num)*/function slug2(...
View ArticleError with complex Oracle query
I’m getting this error when trying an Oracle query inside a search function: Code: <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was...
View ArticleDiscussions on Pagination hasNext() and hasPrevious()
If current page > 1 , then it should show "previous page".If page count > current page , then it should show "next page". I think this is more reasonable. Such as google search paging style....
View Articlecodeigniter 3 and angular 2
Hi i need a sample curd operation in codeigniter by using angular 2
View ArticlePrevent access to pages if session is not set
Is there a way that redirects user to login page if he tries to access a page without logging in. I have my attempt on doing this but to no avail I failed Code: class Navigation extends CI_Controller...
View ArticleWiki library
I'm looking for a library that can structure and navigatie through pages the way a wiki does. With peer pages and child pages. Also versioning (keep previous versions of pages). I can try building this...
View ArticleAnyone run CI 3.1.5 on Ubuntu 16.04
Hi all I'm curious if anyone actually runs CI 3.1.5 on Ubuntu 16.04 and any issues? Im still busy with my projects on Ubuntu 14.04 but soon will migrate to that 16.04 or latest stable Appreciate if...
View Articledompdf not working in after 3rd page using codeigniter
Hi All, I used Dompdf to generate PDF from HTML and it works well when the content is just one page. However, it’s not working when the content is more than 3 page. I will appreciate your...
View Article4,547 Warnings & 10 Errors
Hello CodeIgniters, I'm new to CodeIgniter, so please forgive my ignorance. I downloaded CodeIgniter-3.1.5, unzipped it to a new directory and then opened it with Eclipse PDT (Oxygen). Without writing...
View ArticleDump of the Controllers $params
I though that some of you may find this interesting. PHP Code: C:\xampp\htdocs\ci4\application\Controllers\Home.php @line: 62Debug #1 of 1: array(2) { [0]=>...
View Articlecsrf, ajax and form
Hi people, as I wrote in the thread subject I'm here to ask something about the csrf_regenerate. The first question is: is the csrf_regenerate needed? In my website I set csrf_regenerate = TRUE and in...
View ArticleMYSQL / Query Builder Class help
Hi I'm new to CI. I like MYSQL but I'm trying to adust to the "Query Builder" Class. I read some of the resources here [url= https://www.codeigniter.com/user_guide/d...data]Query Builder Class[/url]...
View ArticleHow to do login/logout in codeigniter 3?
Will some one post code how to do login/logout in codeigniter 3 ?
View Article