Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: HMVC Routes: Protected methods result in warning instead of 404
Post: HMVC Routes: Protected methods result in warning i...

I've been using HMVC modular extensions. I have a base class in which I've defined some protected methods available to all inheriting controller, however I don't want them to be accessible using URL. ...
2,040 Views
1 Replies
06-20-2017, 01:35 PM
RBX
    Thread: insert_batch() not working completely
Post: RE: insert_batch() not working completely

That's expected. Check the MySQL documentation (https://dev.mysql.com/doc/refman/5.5/en/insert.html), you can define columns only once. Code: -- INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,...
15,280 Views
8 Replies
04-19-2017, 08:50 AM
RBX
    Thread: Apache Rewrite if image doesn't exist
Post: RE: Apache Rewrite if image doesn't exist

I'm now using PHP Code: -- $route['^public/upload/([a-z]+)/(large|catalog|thumb|banner)/([^/]+\.(?:jpg|png|jpeg))$'] = 'resize/index/$1/$2/$3'; -- but this should be possible with just .htacce...
1,905 Views
1 Replies
04-16-2017, 11:14 AM
RBX
    Thread: controller in side other controller
Post: RE: controller in side other controller

work.steve Wrote: (04-15-2017, 07:11 AM) -- Hi  I have a problem, can`t find solve fot them. I have controller, name: Logon, working good. I wont use same controller in side other controller, if ...
2,179 Views
1 Replies
04-15-2017, 08:25 AM
RBX
    Thread: Apache Rewrite if image doesn't exist
Post: Apache Rewrite if image doesn't exist

I have a resize controller with method named index which performs the resizing. PHP Code: -- public function index($location = '', $size = '', $image = '') {   //Some code here } -- I want ...
1,905 Views
1 Replies
04-15-2017, 02:11 AM
RBX
    Thread: Form Validation Callback
Post: RE: Form Validation Callback

InsiteFX Wrote: (04-10-2017, 03:51 AM) -- Try this: PHP Code: --
12,516 Views
7 Replies
04-11-2017, 08:00 AM
RBX
    Thread: Form Validation Callback
Post: RE: Form Validation Callback

InsiteFX Wrote: (04-10-2017, 03:51 AM) -- Try this: -- That should do it. For now, I've avoided the callback validation rule. salain Wrote: (04-10-2017, 03:53 AM) -- According to the documentat...
12,516 Views
7 Replies
04-10-2017, 11:02 AM
RBX
    Thread: Form Validation Callback
Post: Form Validation Callback

I'm using CI 3.1.4, and Validation library can't seem to find my callback function, which goes something like this. PHP Code: -- $this->fv->set_rules('currentPassword', 'Current Password', 'required...
12,516 Views
7 Replies
04-10-2017, 01:29 AM
RBX
    Thread: phpStorm Releases ver 2016.3
Post: RE: phpStorm Releases ver 2016.3

I remember something mentioned about CI support in this version, but can't find anything.
5,351 Views
5 Replies
11-25-2016, 09:19 AM
RBX
    Thread: insert_batch failure on empty array
Post: insert_batch failure on empty array

The insert_batch function fails when the data array passed to it is empty. It is supposed to show a meaningful message when database debugging is enabled, but it doesn't. This is specially problematic...
1,559 Views
0 Replies
11-07-2016, 12:03 PM
RBX
    Thread: CI 3.1.1 Index/index gives 404
Post: RE: CI 3.1.1 Index/index gives 404

Narf Wrote: (10-24-2016, 10:27 AM) -- RBX Wrote: (10-24-2016, 10:17 AM) -- Narf Wrote: (10-24-2016, 10:11 AM) -- Index::index() has always been a "reserved" name because it's a PHP4-style construct...
6,834 Views
6 Replies
10-24-2016, 11:45 AM
RBX
    Thread: CI 3.1.1 Index/index gives 404
Post: RE: CI 3.1.1 Index/index gives 404

Narf Wrote: (10-24-2016, 10:11 AM) -- Index::index() has always been a "reserved" name because it's a PHP4-style constructor. It has never worked without causing problems, nothing to do with CI 3.1.1...
6,834 Views
6 Replies
10-24-2016, 10:17 AM
RBX
    Thread: CI 3.1.1 Index/index gives 404
Post: CI 3.1.1 Index/index gives 404

I believe there is a bug in 3.1.1, or at least when migrating from 3.1.0 to 3.1.1 - the index method of Index controller stops working and gives 404. I used this migration guide. http://www.codeignit...
6,834 Views
6 Replies
10-24-2016, 09:50 AM
RBX
    Thread: Controller Method Name Prefix
Post: RE: Controller Method Name Prefix

I think this should be kept. The validation rules require callback method to be public, and with CodeIgniter's magical routing, the methods can be accessed using URLs. To overcome this, I use the ...
7,522 Views
8 Replies
10-22-2016, 09:21 AM
RBX
    Thread: Routing changes at a single location
Post: RE: Routing changes at a single location

d4jk4 Wrote: (10-21-2016, 03:02 AM) -- RBX Wrote: (10-18-2016, 12:35 PM) -- I've recently started using CI and find it really difficult to perform routing changes. Whether I want to specify a form a...
3,481 Views
2 Replies
10-21-2016, 10:55 AM
RBX
    Thread: PHPStorm announces Codeigniter Support
Post: RE: PHPStorm announces Codeigniter Support

skunkbad Wrote: (10-19-2016, 03:14 PM) -- I'm on Linux (Ubuntu), and actually purchased PHPStorm about a year ago. I had to get a refund because it was super buggy. It's nice to see they're going to ...
18,928 Views
9 Replies
10-21-2016, 10:33 AM
RBX
    Thread: Package Autoload
Post: Package Autoload

How exactly does it work? I have created several Enumerations and placed them in application/third_party/Enum and have created an autoloader class for loading them. There is another file index.php ...
1,437 Views
0 Replies
10-19-2016, 08:32 AM
RBX
    Thread: Routing changes at a single location
Post: Routing changes at a single location

I've recently started using CI and find it really difficult to perform routing changes. Whether I want to specify a form action, or want to redirect to a page, I have to specify some URL fragment, and...
3,481 Views
2 Replies
10-18-2016, 12:35 PM
RBX
    Thread: Validation errors
Post: Validation errors

Why doesn't this throw any error, and always silently fails? Why is the third parameter optional? PHP Code: -- $this->form_validation->set_rules('field_name', 'some_rule|another_rule'); if($this...
3,688 Views
4 Replies
10-18-2016, 12:35 PM
RBX

Theme © iAndrew 2016 - Forum software by © MyBB