Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Adding new validation
Post: RE: Adding new validation

Hmm some version upgrades are easy peasy but I don't remember going from 2 to 3 that easy when I have done it depending on how the site it has been written. Anyway I have got it working by being naug...
1,717 Views
8 Replies
10-14-2021, 01:12 AM
Knutsford
    Thread: Still can't get form validation to work
Post: RE: Still can't get form validation to work

As I sadi 'rules' => 'trim|required|callback_name_check' didn't work either. That was the thing I tried but I have just spotted that $this->CI->form_validation->set_message('name_...
583 Views
1 Replies
10-13-2021, 02:18 AM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Yep you are right I have always had a problem with & and && for some reason. I tried doing the validation using callback last night but couldn't get it to work
1,717 Views
8 Replies
10-13-2021, 01:31 AM
Knutsford
    Thread: Still can't get form validation to work
Post: Still can't get form validation to work

I am getting Unable to access an error message corresponding to your field name First name.(name_check) This is my code Code: -- public function name_check($str)         {  if (...
583 Views
1 Replies
10-12-2021, 01:33 PM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Upgrading to 4 is on the cards sometime What I posted is what I tried and I was getting a JavaScript error - something to do with the order id which didn't make sense at all as it isn't part of the fo...
1,717 Views
8 Replies
10-12-2021, 01:51 AM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Knutsford Wrote: (10-11-2021, 11:05 AM) -- How do I add a new form validation? I have PHP Code: --
1,717 Views
8 Replies
10-12-2021, 12:49 AM
Knutsford
    Thread: Adding new validation
Post: Adding new validation

How do I add a new form validation? I have PHP Code: --
1,717 Views
8 Replies
10-11-2021, 11:05 AM
Knutsford
    Thread: Multi cart
Post: Multi cart

Is there a multi cart plug in? I have found https://github.com/uno-de-piera/multi_cart_ci But it is old so I am not sure if it is still usable for version 4 Thanks
507 Views
0 Replies
04-03-2021, 06:40 AM
Knutsford
    Thread: anchor tab
Post: anchor tab

I have a page with a bootstrap toggle Sold If I call it from another page how do I get it to open the user_sold div please At the moment it goes back to the page theny you...
598 Views
0 Replies
03-30-2021, 07:23 AM
Knutsford
    Thread: $this->session->set_flashdata
Post: $this->session->set_flashdata

A previous developer has written something like $this->session->set_flashdata('promote', "BlaaBlaa"); I am confused 1) It is giving a popup on only on the desktop version which is what ...
533 Views
0 Replies
03-16-2021, 03:19 AM
Knutsford
    Thread: Or in a select statement
Post: RE: Or in a select statement

something like  select * from table where ( a = 'aa' and b = 'bb')  or (c = 'aa' and b = 'bb')
1,158 Views
3 Replies
03-11-2021, 10:27 AM
Knutsford
    Thread: Or in a select statement
Post: Or in a select statement

PHP Code: -- function select($table_name, $where_data){   $this->db->select('*');   $this->db->from($table_name);   $this->db->where($where_data); $this->db->order_by('id','DESC');   ...
1,158 Views
3 Replies
03-11-2021, 06:44 AM
Knutsford
    Thread: Coming Soon Page
Post: RE: Coming Soon Page

I had wondered about the second option bu wasn't sure if that would mess up the routing. I like the idea of checking if the $_GET parameter is passed better. I am just panicking after what happened on...
2,373 Views
7 Replies
03-08-2021, 03:18 AM
Knutsford
    Thread: Coming Soon Page
Post: RE: Coming Soon Page

John_Betong Wrote: (03-08-2021, 02:20 AM) -- Knutsford Wrote: (03-08-2021, 01:06 AM) -- John_Betong Wrote: (03-07-2021, 04:55 PM) -- Try and create a new coming soon page and in the top of index.ph...
2,373 Views
7 Replies
03-08-2021, 02:53 AM
Knutsford
    Thread: Coming Soon Page
Post: RE: Coming Soon Page

John_Betong Wrote: (03-07-2021, 04:55 PM) -- Try and create a new coming soon page and in the top of index.php include the coming soon page followed by exit; or die; -- Would that work? I still want ...
2,373 Views
7 Replies
03-08-2021, 01:06 AM
Knutsford
    Thread: Coming Soon Page
Post: Coming Soon Page

How do I go about uploaded a temporary "coming soon" page while a codeigniter site is being worked on. You can't just replace the Index.php page. Thanks
2,373 Views
7 Replies
03-07-2021, 09:36 AM
Knutsford
    Thread: <p>Message: Cannot use object of type stdClass as array</p>
Post: RE: <p>Message: Cannot use object of type stdClass...

I have changed it to $menus["Licensees"][]=objectToArray($row); But I am now getting Message: Argument 1 passed to objectToArray() must be an object, string given?
1,973 Views
4 Replies
11-24-2020, 01:34 AM
Knutsford
    Thread: <p>Message: Cannot use object of type stdClass as array</p>
Post: RE: <p>Message: Cannot use object of type stdClass...

InsiteFX Wrote: (11-23-2020, 12:53 PM) -- Because you are trying to assign an object to an array. I use these to helper when I need to convert one to the other. PHP Code: -- // ---------------...
1,973 Views
4 Replies
11-23-2020, 01:03 PM
Knutsford
    Thread: <p>Message: Cannot use object of type stdClass as array</p>
Post: <p>Message: Cannot use object of type stdClass as ...

Code: -- I have this in the view {foreach from=$menus.Licensees item=this_licen name=licensees}                                 {if $this_licen.FranchiseeID $this_licen.PreviousFranchiseeID} ...
1,973 Views
4 Replies
11-23-2020, 12:29 PM
Knutsford
    Thread: Upgrading to 3.1.11
Post: RE: Upgrading to 3.1.11

Knutsford Wrote: (11-22-2020, 02:59 AM) -- 1) Why do I keep getting Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Login has a depreca...
1,267 Views
3 Replies
11-22-2020, 03:33 AM
Knutsford

Theme © iAndrew 2016 - Forum software by © MyBB