Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Displaying conditional records from databse in Tabs in Codeigniter
Post: RE: Displaying conditional records from databse in...

If you have the time, I would recommend testing the performance of making a separate query for each tab vs. making one query and splitting the data in PHP. I've seen instances where either one is fast...
6,527 Views
3 Replies
09-28-2016, 02:01 PM
mwhitney
    Thread: Can I replace the system/database directory of version 3.1 into version 2.2?
Post: RE: Can I replace the system/database directory of...

Narf Wrote: (09-27-2016, 12:21 AM) -- Here's a question: Why? -- When I was running 2.x, it was helpful to use pieces of 3.x to patch the system, since a lot of things weren't back-ported. However,...
10,009 Views
8 Replies
09-28-2016, 01:55 PM
mwhitney
    Thread: Empty $this->input->get_post in controller whereas $_POST has value at index.php
Post: RE: Empty $this->input->get_post in controller whe...

On one of my sites, I used this in the site's .conf file: Code: -- ServerName my.server.name Redirect 301 / https://myserver.url.here/ -- Since HTTP and HTTPS are on different p...
7,658 Views
4 Replies
09-28-2016, 01:49 PM
mwhitney
    Thread: [split] Modules Supported?
Post: RE: [split] Modules Supported?

Also, you should be aware that in HMVC in CI3, when you call a controller method from another controller, your controller inherits the scope of the controller you call. I've had this come up a couple ...
10,209 Views
3 Replies
09-28-2016, 01:20 PM
mwhitney
    Thread: Router
Post: RE: Router

Ljubin Wrote: (09-24-2016, 02:27 AM) -- wolfgang1983 Wrote: (09-23-2016, 04:26 PM) -- Ljubin Wrote: (09-23-2016, 01:35 PM) -- Thanks guys for halp, but i will stay at CI 2.1 There one more error. ...
20,835 Views
12 Replies
09-26-2016, 01:36 PM
mwhitney
    Thread: Can I replace the system/database directory of version 3.1 into version 2.2?
Post: RE: Can I replace the system/database directory of...

The most significant changes to the database library were internal or in the form of additions to the API, so most things will probably work. The big issue is that it's an untested combination, and yo...
10,009 Views
8 Replies
09-26-2016, 01:14 PM
mwhitney
    Thread: Using Native Session Library
Post: RE: Using Native Session Library

You would be better off removing the library and attempting to track down the cause of the problems you were seeing when using the CI3 session library. The CI3 library is a native session library, ...
3,394 Views
1 Replies
09-26-2016, 11:26 AM
mwhitney
    Thread: Codeigniter on PHP paas
Post: RE: Codeigniter on PHP paas

A quick search turned up a couple of options for integrating CI with Monolog, which would likely give you enough flexibility for the log output to find something which works in your environment. The f...
7,430 Views
4 Replies
09-26-2016, 11:07 AM
mwhitney
    Thread: Removing index.php from the URL's
Post: RE: Removing index.php from the URL's

Try changing the index.php line to this: Code: -- RewriteRule ^(.*)$ index.php?/$1 [L] -- Depending on the version and configuration of Apache (and where you set the rule, and maybe a dozen ...
6,614 Views
6 Replies
09-26-2016, 10:40 AM
mwhitney
    Thread: Empty $this->input->get_post in controller whereas $_POST has value at index.php
Post: RE: Empty $this->input->get_post in controller whe...

Have you tried $this->input->post() or $this->input->post_get()? I never use get_post() or post_get() myself, but the first step in troubleshooting an issue with either one would be to check the input...
7,658 Views
4 Replies
09-26-2016, 10:25 AM
mwhitney
    Thread: [split] Real time? [CodeIgniter 4 Important Features]
Post: RE: [split] Real time? [CodeIgniter 4 Important Fe...

spjonez Wrote: (09-16-2016, 03:38 PM) -- Narf Wrote: -- But regardless of that, this argument started with you claiming that the result with PHP will always suck, which is patently false. -- That ...
36,098 Views
22 Replies
09-20-2016, 09:49 AM
mwhitney
    Thread: Disallowed Key Characters.?array_emails
Post: RE: Disallowed Key Characters.?array_emails

First, I'm going to reformat the JavaScript to attempt to make the source of the problem more obvious, though I did add the curly braces around the function definition (the omission of which should've...
3,743 Views
2 Replies
09-20-2016, 08:59 AM
mwhitney
    Thread: Unable to locate the specified class: Session.php
Post: RE: Unable to locate the specified class: Session....

dave friend Wrote: (09-20-2016, 07:17 AM) -- Just to be perfectly clear. What everybody is saying is... Change this Code: -- $autoload['libraries'] = array('database', 'user_agent'); $autolo...
16,675 Views
16 Replies
09-20-2016, 08:04 AM
mwhitney
    Thread: Controller + Model vs Ultra-slim controller that barely does anything + Library
Post: RE: Controller + Model vs Ultra-slim controller th...

To me, this seems like you need to take a step back and think about each step and figure out what you're trying to do. It sounds like you really have three or four systems you're trying to implement a...
9,072 Views
7 Replies
09-20-2016, 07:40 AM
mwhitney
    Thread: Cache js or css files
Post: RE: Cache js or css files

There are also a number of PHP task runners and asset libraries which can perform the same tasks as Grunt, Gulp, and Require.js. There's no need to wedge Node.js into your project and/or deployment pr...
20,076 Views
10 Replies
09-16-2016, 02:02 PM
mwhitney
    Thread: Session Tempdata vs Cookie for "Remember me" login (CI3)
Post: RE: Session Tempdata vs Cookie for "Remember ...

Joel Catantan Wrote: (09-05-2016, 05:50 PM) -- @ivantcholakov, I don't think so if I gonna do that. Lets face the reality that there are so many lazy users that just wanted to remember when login. If...
9,280 Views
5 Replies
09-16-2016, 01:39 PM
mwhitney
    Thread: Make codeigniter component based
Post: RE: Make codeigniter component based

Stuffed at the end of this page: http://www.codeigniter.com/user_guide/general/autoloader.html is the config option to enable Composer auto-loading, which would expand your options for loading "compo...
3,863 Views
1 Replies
09-16-2016, 01:33 PM
mwhitney
    Thread: CI Session cookie expiry / cookie_lifetime
Post: RE: CI Session cookie expiry / cookie_lifetime

I'm definitely not an expert on this subject, but I'll take a stab at it. Your change to the session library probably will create problems, but, like most session problems, they'll be difficult to ...
8,071 Views
4 Replies
08-04-2016, 12:39 PM
mwhitney
    Thread: use CASCADING DELETE with SQLITE
Post: RE: use CASCADING DELETE with SQLITE

https://www.sqlite.org/pragma.html#pragma_foreign_keys Quote: -- As of SQLite version 3.6.19, the default setting for foreign key enforcement is OFF. [...]  To minimize future problems, applic...
3,586 Views
2 Replies
08-04-2016, 07:39 AM
mwhitney
    Thread: Setting Error
Post: RE: Setting Error

It looks like there is no path in your controller in which both $data['success_message'] and $data['setting'] are defined when you load the settings view, and there is at least one path in which neith...
3,224 Views
2 Replies
08-04-2016, 06:45 AM
mwhitney

Theme © iAndrew 2016 - Forum software by © MyBB