Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

You forgot a semicolon on the line before the if statement. See: PHP Code: -- "; // No records found -- Hope it helps! -Roger
4,680 Views
1 Replies
10-18-2016, 02:46 AM
RogerMore
    Thread: CI 3 formv alidation error
Post: RE: CI 3 formv alidation error

Hey Vincent, Busted for doing David Connelly's shop tutorials!  :P I don't understand what you mean by 'the view is disabled'. But what you should try is to echo $item_title. Change  PHP...
2,949 Views
1 Replies
10-11-2016, 07:50 AM
RogerMore
    Thread: Cannot use object of type stdClass as array
Post: RE: Cannot use object of type stdClass as array

Hey PaulD, There was a time that some of the problems he came up with were funny. Nowadays they mainly irritate me.  Don't get me wrong, there's nothing wrong with beginners questions. One of the re...
16,157 Views
8 Replies
10-10-2016, 06:17 AM
RogerMore
    Thread: Cannot use object of type stdClass as array
Post: RE: Cannot use object of type stdClass as array

Everybody raise your hand if you're getting tired of this guy flooding the forum with beginner PHP problems trying to find people to do the coding for him... *** raising both hands! ***
16,157 Views
8 Replies
10-10-2016, 02:20 AM
RogerMore
    Thread: conditional set_value()
Post: RE: conditional set_value()

Hey, I don't think there really an elegant way of handling this. This is the way I would do this: after the form is submitted and successfully validated, you could set a variable eg. anotherForm to...
9,640 Views
3 Replies
10-10-2016, 02:09 AM
RogerMore
    Thread: Cannot Read default controller
Post: RE: Cannot Read default controller

Hey, Did you put the .htaccess in the codeigniter folder? And maybe you have to change the line with 'index.php/$1' into Code: --  RewriteRule ^(.*)$ /codeigniter/index.php?/$1 [L] -- Hope ...
2,210 Views
1 Replies
10-07-2016, 02:44 AM
RogerMore
    Thread: E-Mail Encoding Problem
Post: RE: E-Mail Encoding Problem

Hey Waschi, The 3E's in your email are encoded '>' characters. So for some reason your character's are converted to another encoding. There are a couple of things you could check or do to avoid ...
6,960 Views
4 Replies
10-06-2016, 03:05 AM
RogerMore
    Thread: Load CI Library in external File
Post: RE: Load CI Library in external File

Hey Maeggi07, First of all... CI isn't an library but a framework. Second, I don't think it's possible to 'load' CI in a legacy php file, and I can't think of a reason why you should want such a ...
2,780 Views
1 Replies
10-06-2016, 02:28 AM
RogerMore
    Thread: Display a set_message for each bad wor found in string
Post: RE: Display a set_message for each bad wor found i...

Looks like the solution of InsiteFX will do the trick, but there is one tiny thing you have to change. In the else section where the message is set for multiple bad words, the message has to be set...
7,787 Views
8 Replies
09-30-2016, 04:54 AM
RogerMore
    Thread: Display a set_message for each bad wor found in string
Post: RE: Display a set_message for each bad wor found i...

Yeah, that's basically what I said...  :P
7,787 Views
8 Replies
09-30-2016, 02:55 AM
RogerMore
    Thread: Display a set_message for each bad wor found in string
Post: RE: Display a set_message for each bad wor found i...

Hey Wolfgang, I can't help you with a solution for multiple messages. What I can say is that your for loop is setting the message for 'badword' over and over again. So you probably get only one mes...
7,787 Views
8 Replies
09-30-2016, 02:15 AM
RogerMore
    Thread: HTML email - Do you see the problem?
Post: RE: HTML email - Do you see the problem?

Sorry man, I edited my last post because I didn't see de debug info. I asked the following 3 questions: So what does the end say of the debug info? Are you mailing to a gmail account? You are...
8,710 Views
10 Replies
09-30-2016, 01:20 AM
RogerMore
    Thread: HTML email - Do you see the problem?
Post: RE: HTML email - Do you see the problem?

So what does the end say of the debug info? Are you mailing to a gmail account? You are sending with the charset setting on UTF-8?
8,710 Views
10 Replies
09-30-2016, 12:50 AM
RogerMore
    Thread: HTML email - Do you see the problem?
Post: RE: HTML email - Do you see the problem?

Hey Jan, is the debug info given by ... PHP Code: -- $this->email->print_debugger(); -- ... telling you anything useful? -Roger
8,710 Views
10 Replies
09-30-2016, 12:27 AM
RogerMore
    Thread: URL rewriting problem
Post: RE: URL rewriting problem

Hi Xenos92, I don't know about your approach, but if I wanted to do something like http://localhost:8888/mywebsite/product/12, I would probably do something like this: .htaccess: First of all s...
2,314 Views
1 Replies
07-08-2016, 12:46 AM
RogerMore
    Thread: Loading views outside of normal view and module/view folders
Post: RE: Loading views outside of normal view and modul...

Hi InsiteFX, Thanks for your respons! Ouch! Didn't know I could set my own path... Is it new with CI 3? I can't remember such a setting in CI 2? Thanks anyways! This wil certainly do the tric...
5,692 Views
2 Replies
06-03-2016, 04:05 PM
RogerMore
  Question Thread: Loading views outside of normal view and module/view folders
Post: Loading views outside of normal view and module/vi...

Hi guys, I can use some help with the following: I'm developing a custom CMS for a client with CI 3 and HMVC.  What I really want to achieve, is that I can load views outside the normal view or...
5,692 Views
2 Replies
06-03-2016, 01:44 PM
RogerMore
    Thread: video thumbnail
Post: RE: video thumbnail

Hey Pratik, I don't know if this is the case, but if your video is a Youtube (or other service) video, you can use their api to get your thumbnails. https://developers.google.com/youtube/v3/docs...
5,759 Views
2 Replies
04-21-2016, 01:43 AM
RogerMore
    Thread: After update, problem with routing
Post: RE: After update, problem with routing

Hey SubjectX, I think it's a very bad idea to copy files from an older version of CI over the newer ones you are using know. Things have have changed for a reason, and using older files is a recipe f...
4,422 Views
4 Replies
04-21-2016, 01:14 AM
RogerMore
    Thread: about defined('BASEPATH') ?
Post: RE: about defined('BASEPATH') ?

Normally every php file can be run which can reveal parts of your site or cause other unwanted output like error messages if that file isn't meant to be run from the web. The line with BASEPATH pr...
25,925 Views
6 Replies
09-28-2015, 02:30 AM
RogerMore

Theme © iAndrew 2016 - Forum software by © MyBB