Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Using third party REST API, how to?
Post: Using third party REST API, how to?

I am working on a project that involves connecting to a third party REST API. I'm struggling to find a way to connect, as the few CI libraries I have found are either too old, have no proper docume...
4,896 Views
1 Replies
03-16-2017, 04:59 AM
mr_pablo
    Thread: URI Routing - only allow custom route?
Post: URI Routing - only allow custom route?

I have some routing setup e.g. I use an `auth` controller for login/logout stuff etc. and I am routing the methods to nicer URLs to remove the `auth` wording, so `auth/logout` simply becomes `logout`....
2,624 Views
2 Replies
05-06-2016, 06:57 AM
mr_pablo
    Thread: ajax Forbidden error
Post: RE: ajax Forbidden error

Instead of defining PHP Code: -- $data['security'] = $this->security; -- Have you tried passing the CRSF token data like it outlines here, http://www.codeigniter.com/user_guide/libraries/securit...
10,178 Views
2 Replies
01-08-2016, 07:33 AM
mr_pablo
    Thread: [SOLVED] How to select default controller in subfolder?
Post: RE: How to select default controller in subfolder?

I have a similar setup. I have an "admin" sub-folder, and inside that, an index.php controller file that has an index method. Then you just add additional routing PHP Code: -- $route['admin'...
24,799 Views
10 Replies
01-08-2016, 03:30 AM
mr_pablo
    Thread: Pagination suffix issue
Post: RE: Pagination suffix issue

Bump?
2,356 Views
1 Replies
01-07-2016, 03:29 AM
mr_pablo
    Thread: Profiler is showing multiple query sections?
Post: Profiler is showing multiple query sections?

In CI2, the Profiler would show a single Query section showing all queries ran in that request. Now in CI3, the Profiler shows multiple Query sections, they each show the same set of queries, so it...
2,489 Views
1 Replies
01-06-2016, 04:42 AM
mr_pablo
    Thread: Upgraded to 3... can't access pages
Post: RE: Upgraded to 3... can't access pages

If you have the index_page set, you should be accessing www.example.com/index.php/controller http://www.codeigniter.com/user_guide/general/urls.html#removing-the-index-php-file
8,669 Views
6 Replies
01-06-2016, 02:32 AM
mr_pablo
    Thread: unable to fetch records from database
Post: RE: unable to fetch records from database

nady Wrote: (01-06-2016, 02:16 AM) -- Hi whats wrong in my following query. i got the error Error Number: 1054 Unknown column 't.user_id' in 'where clause' -------------------------my query----------...
3,659 Views
2 Replies
01-06-2016, 02:27 AM
mr_pablo
    Thread: capture id on click
Post: RE: capture id on click

ryan Wrote: (01-05-2016, 08:53 AM) -- I swear I tried that .... I think I was skirting around that solution but was making my mistake at Code: -- $data['results']=$this->model_get->getSOI($id); ...
19,021 Views
16 Replies
01-05-2016, 09:10 AM
mr_pablo
    Thread: capture id on click
Post: RE: capture id on click

PHP Code: -- public function soi($id)    {        $data['title'] = 'Give Me a Title';        $data['page_header'] = 'Give me a Page Header';        $this->load->model('model_get');       ...
19,021 Views
16 Replies
01-05-2016, 08:46 AM
mr_pablo
    Thread: Help me..
Post: RE: Help me..

PaulD Wrote: (01-05-2016, 08:35 AM) -- Why? It turns his array into the array he wanted? I was just trying to help... but out of interest, why is it horrible? Paul. -- It's a lot of code for...
19,885 Views
10 Replies
01-05-2016, 08:43 AM
mr_pablo
    Thread: Help me..
Post: RE: Help me..

PaulD Wrote: (01-05-2016, 06:50 AM) -- Or loop through your data in php. Use a counter to add the 1,2,3 to the end of the default type, name, description variables, and create your array from the dat...
19,885 Views
10 Replies
01-05-2016, 08:30 AM
mr_pablo
    Thread: Writing an API (for mobile app) on top of a web application?
Post: RE: Writing an API (for mobile app) on top of a we...

Yes, have an API Controller and have it spit out JSON for the most part (nice and easy to parse in pretty much any mobile app)
6,147 Views
4 Replies
01-05-2016, 02:21 AM
mr_pablo
    Thread: Pagination suffix issue
Post: Pagination suffix issue

I came across what I believe to be an issue with Pagination, and there is a relevant thread, archived here http://forum.codeigniter.com/thread-50809.html?highlight=pagination+suffix This says it is...
2,356 Views
1 Replies
01-04-2016, 09:53 AM
mr_pablo
    Thread: How to update account when user don't want to update all database field
Post: RE: How to update account when user don't want to ...

Below is my Controller method for letting users update their details. I am using ion_auth to update the details, but it's simply a Model wrapper. PHP Code: --    public function index()    { ...
2,099 Views
1 Replies
01-04-2016, 09:29 AM
mr_pablo
    Thread: I am new
Post: RE: I am new

vinnyvrj Wrote: (01-04-2016, 08:48 AM) -- RobertSF Wrote: (01-03-2016, 09:07 PM) -- Hi, Vinny. Welcome to CodeIgniter! I don't have any videos to suggest, but if you're familiar with PHP and SQL alr...
9,193 Views
6 Replies
01-04-2016, 09:24 AM
mr_pablo
    Thread: IF statement in Query Builder Select, odd results?
Post: IF statement in Query Builder Select, odd results?

I am using an IF statement in a QB select, as follows: PHP Code: -- $this->db->select("details.*, IF(favourites.id, TRUE, FALSE) as favourite", FALSE); -- Firstly, this only works with the secon...
14,359 Views
1 Replies
01-04-2016, 07:24 AM
mr_pablo
    Thread: Are case-sensitive file names really needed?
Post: Are case-sensitive file names really needed?

I have recently upgraded from CI2 to CI3 and one of the stesp says to have capitalised file names for Controllers and Models. However, during the upgrade, I noticed that CI3 worked without the capi...
5,686 Views
4 Replies
01-04-2016, 02:40 AM
mr_pablo
    Thread: remove the double quotes of a subquery
Post: RE: remove the double quotes of a subquery

Does "m"."mat_anio_academico" exist in your table? Have you tried running the sub-query just in a DB tool?
7,413 Views
7 Replies
12-22-2015, 09:09 AM
mr_pablo
    Thread: Google Cloud SQL connection
Post: Google Cloud SQL connection

I have just moved form CI2 to CI3 and I am having trouble getting a DB connection to my Google Cloud SQL DB. In CI2, I used: PHP Code: -- $db['default']['hostname'] = 'localhost'; $db['default...
3,421 Views
1 Replies
12-22-2015, 06:32 AM
mr_pablo

Theme © iAndrew 2016 - Forum software by © MyBB