Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: "Json" as controller name does not work
Post: RE: "Json" as controller name does not work

InsiteFX Wrote: (10-29-2019, 03:42 AM) -- Strange I just ran it with CodeIgniter 3.1.11 with no errors without using routes. Maybe something to do with your routing. -- Well my full routing file...
2,210 Views
3 Replies
10-29-2019, 03:47 AM
HarrysR
    Thread: "Json" as controller name does not work
Post: "Json" as controller name does not work

Well i've faced a very weird issue. If i create a controller named "Json" and try to access it i get an "Object not found" error in my CI project. On the other hand if i give the controller another...
2,210 Views
3 Replies
10-27-2019, 01:43 PM
HarrysR
    Thread: ODBC driver with access database
Post: ODBC driver with access database

Since i've checked everywhere and i couldn't find any solid solution or explanation here's the problem: I'm trying to use (more like for educational purposes only) an MS Access database with .mdb. ...
1,222 Views
0 Replies
10-04-2019, 12:25 PM
HarrysR
    Thread: How to set and access global variable through controller functions?
Post: RE: How to set and access global variable through ...

Wouter60 Wrote: (09-14-2019, 12:43 PM) -- Ajax is used to run a server sided script from a view (not from a function in a controller), and most times return information to the view and update the DOM...
15,768 Views
4 Replies
09-14-2019, 12:54 PM
HarrysR
    Thread: How to set and access global variable through controller functions?
Post: How to set and access global variable through cont...

I might have a wrong approach on this one BUT, is it possible to set a global variable in one controller function and access it through another one? Here's what i mean: PHP Code: --
15,768 Views
4 Replies
09-14-2019, 10:24 AM
HarrysR
    Thread: How to use external php library in codeigniter?
Post: RE: How to use external php library in codeigniter...

Since i don't know how to user composer yet, i think i should start learning it in order to complete this! :P Thanks for you help! :)
5,219 Views
2 Replies
09-08-2019, 02:52 PM
HarrysR
    Thread: How to use external php library in codeigniter?
Post: How to use external php library in codeigniter?

Hey!  I'm currently creating a project where users can compare two text files (html styled or not), see the differences between those two and then request for embeding those changes in the main fil...
5,219 Views
2 Replies
09-08-2019, 01:42 PM
HarrysR
    Thread: Admin folder in subfolder not working...
Post: RE: Admin folder in subfolder not working...

@php_rocs If i do this i get redirected to the main website. I forgot to mention that in my header i have this script, in order to prevent users that are not admins to enter the admin panel and if...
6,106 Views
7 Replies
07-16-2019, 10:25 AM
HarrysR
    Thread: Admin folder in subfolder not working...
Post: RE: Admin folder in subfolder not working...

InsiteFX Wrote: (07-15-2019, 04:05 PM) -- Did you try adding the RewriteBase to your .htaccess file? Code: -- RewriteEngine On RewriteBase "sub.domain.com/admin/" -- -- Yes, and i still get th...
6,106 Views
7 Replies
07-16-2019, 01:51 AM
HarrysR
    Thread: Admin folder in subfolder not working...
Post: RE: Admin folder in subfolder not working...

As i mentioned above yes! It is located in subdirectory.. When i type the subdirectory URL i get a 404 not found page..
6,106 Views
7 Replies
07-15-2019, 10:56 AM
HarrysR
    Thread: Admin folder in subfolder not working...
Post: Admin folder in subfolder not working...

Hello guys, Here's the thing. I've created the main application in the subdomain sub.domain.com and i've placed another admin ci application in sub.domain.com/admin/. The problem is that when i...
6,106 Views
7 Replies
07-15-2019, 09:01 AM
HarrysR
    Thread: Load controller from another controller
Post: RE: Load controller from another controller

InsiteFX Wrote: (06-20-2019, 12:47 PM) -- If you use the HMVC it allows controllers to load other controllers. codeigniter-modular-extensions-hmvc (https://bitbucket.org/wiredesignz/codeigniter-mo...
14,516 Views
12 Replies
06-20-2019, 01:00 PM
HarrysR
    Thread: Load controller from another controller
Post: RE: Load controller from another controller

Wouter60 Wrote: (06-20-2019, 12:46 PM) -- Did you think of using a library for that? Or create a MY_Controller.php in the application/core folder. Write a method to generate a common set of views or ...
14,516 Views
12 Replies
06-20-2019, 12:59 PM
HarrysR
    Thread: Load controller from another controller
Post: Load controller from another controller

Hello, I was wondering if it's possible to load a controller through another controller. As i've searched the internet i found some articles that people mentioned that this is "not a working practice...
14,516 Views
12 Replies
06-20-2019, 10:34 AM
HarrysR
    Thread: Problem with inserting csv file entries to db
Post: RE: Problem with inserting csv file entries to db

php_rocs Wrote: (05-17-2019, 05:53 AM) -- @HarrysR, What does your csv input look like (test data)?  Also, what tools do you use to debug your code? Xdebug? echo statements?  My guest is that ther...
1,753 Views
4 Replies
05-19-2019, 04:40 PM
HarrysR
    Thread: Problem with inserting csv file entries to db
Post: RE: Problem with inserting csv file entries to db

php_rocs Wrote: (05-16-2019, 08:40 PM) -- @HarrysR, What are you trying to accomplish? Inserting records? Get the id of the created records?  Are you getting error messages? If so, what error mess...
1,753 Views
4 Replies
05-17-2019, 02:17 AM
HarrysR
    Thread: Problem with inserting csv file entries to db
Post: Problem with inserting csv file entries to db

What i'm facing here has kinda confused me. I'm trying to insert some entries parsed from csv file into db. I found the csv library, it works and so far so good. I have the following script in con...
1,753 Views
4 Replies
05-16-2019, 08:02 AM
HarrysR
    Thread: Using xml files for a web project.
Post: RE: Using xml files for a web project.

ciadmin Wrote: (03-08-2019, 10:23 AM) -- I think the approach is viable. It might be possible to improve performance by separating the XML into multiple documents (one per thread? one per user?), to...
3,350 Views
9 Replies
03-09-2019, 04:29 AM
HarrysR
    Thread: Using xml files for a web project.
Post: RE: Using xml files for a web project.

ciadmin Wrote: (03-07-2019, 05:37 PM) -- Almost ... if base_url('assets/...') is publically accessible, you are exposing your data, which is not good. A better practice is to map your document root ...
3,350 Views
9 Replies
03-08-2019, 10:03 AM
HarrysR
    Thread: Using xml files for a web project.
Post: RE: Using xml files for a web project.

ciadmin Wrote: (03-07-2019, 03:53 PM) -- I have used XML to store "website" data for 20+ years. I don't make it directly accessible, but instead have a controller/servlet which retrieves it on the se...
3,350 Views
9 Replies
03-07-2019, 04:06 PM
HarrysR

Theme © iAndrew 2016 - Forum software by © MyBB