Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: "Use" Command with CI?
Post: RE: "Use" Command with CI?

That worked. Thanks!
8,478 Views
5 Replies
03-03-2017, 03:48 AM
VikRubenfeld
    Thread: "Use" Command with CI?
Post: RE: "Use" Command with CI?

I've used npm a lot for node.js, but this is my first time using Composer (with PHP of course). Here is my current composer.json file, (which is located in the same directory as index.php): Code: ...
8,478 Views
5 Replies
03-03-2017, 12:32 AM
VikRubenfeld
    Thread: "Use" Command with CI?
Post: "Use" Command with CI?

I've installed PhantomJS and PHP-PhantomJS per the PHP-PhantomJS docs (http://jonnnnyw.github.io/php-phantomjs/). Per the PHP-PhantomJS docs, I have the following lines at the top of a controller ...
8,478 Views
5 Replies
03-02-2017, 06:12 PM
VikRubenfeld
    Thread: Session Data for AJAX Calls in CI 3.x?—SOLVED
Post: RE: Session Data for AJAX Calls in CI 3.x?—SOLVED

Using relative URLs fixed it: Before (not working): Code: -- window.location = "https://mySite.com/myController/myFunction"; -- After (working): Code: -- window.location = "/myController/myFu...
3,248 Views
2 Replies
11-18-2016, 07:43 PM
VikRubenfeld
    Thread: Session Data for AJAX Calls in CI 3.x?—SOLVED
Post: RE: Session Data for AJAX Calls in CI 3.x? URGENT

It's not an ajax call-- my apologies. It is a call in javascript, but it's not ajax-- it is: PHP Code: -- window.location = "https://myHostName/myController/myFunction/"; -- Why would it make an...
3,248 Views
2 Replies
11-18-2016, 06:39 PM
VikRubenfeld
    Thread: CI 3.x Folder Permissions?
Post: RE: CI 3.x Folder Permissions?

Excellent. Thanks for this info.
4,921 Views
3 Replies
11-18-2016, 10:31 AM
VikRubenfeld
    Thread: Session Data for AJAX Calls in CI 3.x?—SOLVED
Post: Session Data for AJAX Calls in CI 3.x?—SOLVED

UPDATE: My boss is telling me I will have to revert to CI 2.x if I can't get this fixed by Monday. Is there anything I can look at to start to track this down? I've just upgraded to CI 3. On my...
3,248 Views
2 Replies
11-18-2016, 12:09 AM
VikRubenfeld
    Thread: CI 3.x Folder Permissions?
Post: RE: CI 3.x Folder Permissions?

Update-- I solved the error message. However, if there's a docs page about folder permissions, I'd like to look at it for further reference. :)
4,921 Views
3 Replies
11-17-2016, 05:45 PM
VikRubenfeld
    Thread: CI 3.x Folder Permissions?
Post: CI 3.x Folder Permissions?

I've updated from CI 2.x-> CI 3.x. It went quite quickly. I've updated my production server and as expected am getting a permissions error: Quote: -- Message: mkdir(): Permission denied Filename: ...
4,921 Views
3 Replies
11-17-2016, 05:38 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

That fixed it. I just had: $config['base_url'] = 'localhost/'; Thank you very much!
9,035 Views
9 Replies
11-12-2016, 09:14 AM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

Tracking it down! redirect('/auth/login/'); ...is updated by function redirect() to: $uri = "localhost/index.php/auth/login/" ...which looks good. The redirect takes place and CodeIgniter ...
9,035 Views
9 Replies
11-11-2016, 06:29 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

Tracing through the redirect code, I get to this at the bottom of function redirect(): PHP Code: -- header('Location: '.$uri, TRUE, $code); -- $uri = "localhost/index.php/auth/login/" $code = 307 ...
9,035 Views
9 Replies
11-11-2016, 04:34 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

I access my development site using 'localhost', e.g. 'localhost/auth/login'. I have $config['base_url'] set to 'localhost'. Is that correct?
9,035 Views
9 Replies
11-11-2016, 04:29 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

dave friend Wrote: (11-11-2016, 04:01 PM) -- In config.php make sure that $config['base_url'] is set. You used to be able to get away with not setting it. Not so with CI 3.x. -- I didn't see this b...
9,035 Views
9 Replies
11-11-2016, 04:28 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

Update: Looks like it's happening in site_url($uri)... investigating...
9,035 Views
9 Replies
11-11-2016, 04:22 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: RE: CI 2.x->3.x Redirect?

Update: After the redirect, in CodeIgniter.php, looking in $_SERVER[], I see: Code: -- [REDIRECT URL] = "/localhost/index.php/auth/login/" -- That is as expected. But I also see: Code: -- [P...
9,035 Views
9 Replies
11-11-2016, 04:08 PM
VikRubenfeld
    Thread: CI 2.x->3.x Redirect?
Post: CI 2.x->3.x Redirect?

I'm upgrading from CI 2.x to CI 3.x. I have this line in my default controller for users who aren't logged in: PHP Code: -- redirect('/auth/login/'); -- This used to redirect to: http://local...
9,035 Views
9 Replies
11-11-2016, 03:21 PM
VikRubenfeld
    Thread: CI 2.x->3.x Class Names?
Post: RE: CI 2.x->3.x Class Names?

Excellent. Thanks very much.
5,025 Views
4 Replies
11-11-2016, 11:40 AM
VikRubenfeld
    Thread: CI 2.x->3.x Class Names?
Post: CI 2.x->3.x Class Names?

I'm upgrading from CI 2.x to 3.x.  I see that I will be changing the case of class names to make them have initial caps. E.g.: PHP Code: -- application/libraries/mylibrary.php -- becomes: PH...
5,025 Views
4 Replies
11-11-2016, 11:18 AM
VikRubenfeld
    Thread: .htaccess question: 404 Results from Different Paths on Server vs. Localhost?
Post: RE: .htaccess question: 404 Results from Different...

Thanks for the reply, Paradinight.  I solved this. There were two things I had to do. First I had to move my .htaccess file into the folder that contained index.php. Next, I had to edit config.php and...
6,596 Views
3 Replies
08-22-2015, 11:01 AM
VikRubenfeld

Theme © iAndrew 2016 - Forum software by © MyBB