Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 14,049
» Latest member: tt-tom
» Forum threads: 69,687
» Forum posts: 432,616

Full Statistics

Latest Threads
Window Modal does not wor...
Forum: Lounge
41 minutes ago
» Replies: 15   » Views: 443
User link - route all req...
Forum: CodeIgniter 4 Support
3 hours ago
» Replies: 4   » Views: 131
Codeigniter is not decodi...
Forum: Issues
9 hours ago
» Replies: 0   » Views: 34
file type crt as mime
Forum: CodeIgniter 3.x
Yesterday, 05:34 PM
» Replies: 2   » Views: 55
Installation Help
Forum: CodeIgniter 4 Support
Yesterday, 03:06 PM
» Replies: 1   » Views: 48
preg_match not working we...
Forum: General Help
Yesterday, 11:59 AM
» Replies: 3   » Views: 81
Search Criteria Ignored, ...
Forum: General Help
Yesterday, 09:38 AM
» Replies: 17   » Views: 351
Forum: Addins
Yesterday, 09:34 AM
» Replies: 11   » Views: 1,622
Plugin/Script reccomendat...
Forum: Addins
Yesterday, 06:42 AM
» Replies: 4   » Views: 219
Invisible Recaptcha
Forum: Addins
Yesterday, 03:02 AM
» Replies: 5   » Views: 506

  Testing Code Modules
Posted by: Matleyx - 06-10-2019, 03:14 AM - Forum: CodeIgniter 4 Support - Replies (3)


I'm Matleyx, and i'm testing the code Module in CI4

You see my file in the attachment.

I modified the autoload file, adding this line in Psr4:

'Modules'                   => APPPATH.'../modules'

but i have a problem with Routes file.
I'll explain:

This is the line for routes.php

$routes->group('testmodule', ['namespace' => 'Modules\Testmodule\Controllers'], function($routes)
    $routes->add('/', 'Testcont::index');
    $routes->add('(:any)', 'Testcont::$1');

This work only if i put this line in /app/Config/Routes.php. (localhost/ci4/public/testmodule/ecc

If i put the lines in the /modules/Testmodule/Config/Routes.php, don't work.

How do I make it work with module/Testmodule/Config/Routes.php?

Thanks to all

  User link - route all request that generates 404
Posted by: mirel.popescu - 06-10-2019, 01:40 AM - Forum: CodeIgniter 4 Support - Replies (4)


I want to create user profiles with the following link structure: site.tld/username.
The problem is that if I use: $routes->add('(:any)', 'Profile::userbyname/$1') , it will also redirect valid controllers (ex: login, admin etc).

How can I do this redirect correctly?


  Spark Serve Options
Posted by: paulkd - 06-08-2019, 11:24 PM - Forum: CodeIgniter 4 Support - Replies (2)

Hi All,

I've installed CI4 appstarter using composer and want to run on port 80.

I ran php spark serve and noticed that any --options were being ignored.

Looking at Serve.php and CLI.php can someone explain how I should set required options?

All the best.

  Vuejs complex front end
Posted by: ignitedcms - 06-08-2019, 03:53 PM - Forum: General Help - No Replies

Hi guys,

I'm considering building a vuejs complex front end but a bit confused about the datastructure. Will update this thread tomorrow for more details.

It's json based that renders html components.

  Window Modal does not work
Posted by: RRIOS - 06-08-2019, 11:53 AM - Forum: Lounge - Replies (15)


I'm setting up a CRUD. At the end of some routines, INSERT, EDIT etc I want you to either show a success message or not. I thought about using MODAL BOOTSTRAP.
1- I have already inserted all the .js files in the header.htmk file
2- I already put jquery.min.js before bootstrap.min.js
3- I also inserted bootstrap-modal.js
4- I already inserted this code, at the end and at the beginning of the screen that I want to show the MODAL:
<script type = "text / javascript">
     $ (window) .load (function () {$ ('# myModal'). modal ('show');
</ script>
5- I have already put this code instead of the code above:

$ (document) .ready (function () {
   $ ('# myModal'). modal ('show');
 In the model I do the INSERTS, UPDATES and DELETES, and after that I call a view to give a message. I was using a very beginner model:
<div class = "alert alert-success" role = "alert">
<? php $ msg; ?>
</ div>
And I decided to try the MODAL.
But it does not work.

  [split] view execution order (CodeIgniter 3.1.10 Released)
Posted by: Homero1959 - 06-08-2019, 10:51 AM - Forum: General Help - Replies (1)

I am very happy using CodeIgneter. But I have a problem all curious: I have the folder Views / templates and insideFooter, Header. When I run the Controller, it runs first Footer, then home page and then Header. But if I put Header first, only Header is executed. It does not show the rest anymore. Thanks for your help.

  Plugin/Script reccomendation
Posted by: Mekaboo - 06-07-2019, 01:57 PM - Forum: Addins - Replies (4)

Hello all!

Does anyone know of a simple comment wall post script or plugin that's current and can be implemented within a dashboard and on a profile page using CI? Ive been wrecking my brain trying to find one that can be easily added into my site.

Heart Heart ,

  Public folder with htaccess?
Posted by: edica - 06-07-2019, 01:39 PM - Forum: CodeIgniter 4 Support - Replies (4)


How to direct to public folder? With htaccess?

  Cache with custom_row_object
Posted by: jfri - 06-07-2019, 08:56 AM - Forum: General Help - No Replies

Hello folks,

I have a question because of the cache. I enabled it in our application and now a query in this format doesn't work anymore:

PHP Code:

(We need $this->CI for the session, that's okay like this)

The thing is, I found out that if the data is loaded from the cache, there is no conn_id and no result_id set in the result, which makes perfectly sense. The thing is, if you call row() with a custom model, it will call custom_row_object which will call custom_result_object. In this function there is this if condition:
PHP Code:
elseif ( ! $this->result_id OR $this->num_rows === 0) {
     return array();

This leads to error messages even if the correct data would be loaded. Did anyone else had this problem and has a workaround, which is not in the DB_result.php class? I don't like to mess around in system classes. I use CI 3.1.10.

  DB design help
Posted by: neuron - 06-07-2019, 08:05 AM - Forum: General Help - Replies (5)


I am building a web project for a leasing company.
Leasing company's customer can be both a person or a company.
if customer is a company then it has Authorized representers (can be more than one representer) which.

I can't find a proper DB table structure to meet this needs.

Any help is appreciated...

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.