Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: nginx with base_url adds the base url
Post: nginx with base_url adds the base url

I'm trying to version my app, such that /0.0.1/ is the API for version 0.0.1, and so on. My nginx rewrite for that is: Code: -- location / {     try_files $uri $uri/ @rewrite; } location @re...
2,858 Views
1 Replies
03-06-2017, 07:38 AM
AmitMY
    Thread: index.php - show errors for development
Post: index.php - show errors for development

In index.php, on the ENVIRONMENT switch, case 'development', there is: PHP Code: -- error_reporting(-1); ini_set('display_errors', 1); -- I wonder if: a - error_reporting(E_ALL); will be more ...
1,501 Views
0 Replies
12-03-2016, 06:55 AM
AmitMY
    Thread: Query build - insert NOW()
Post: RE: Query build - insert NOW()

sv3tli0 Wrote: (11-24-2016, 12:36 AM) -- Just to mark something.. Usually it's better to generate time including now , for insert or select within your PHP code. It's not good to relate on both D...
7,685 Views
5 Replies
11-24-2016, 01:44 AM
AmitMY
    Thread: Query build - insert NOW()
Post: Query build - insert NOW()

How would you go about having "NOW()" in insert? The current insert doc: PHP Code: -- $data = array(        'title' => 'My title',        'name' => 'My Name',        'date' => 'My date' );...
7,685 Views
5 Replies
11-23-2016, 04:34 AM
AmitMY
    Thread: Code completion suggestion
Post: RE: Code completion suggestion

cartalot Wrote: (11-22-2016, 11:43 AM) -- yeah i was excited about that announcement from phpstorm but i've tried it and its not doing anything. maybe it only works on certain platforms. anyway -...
11,188 Views
10 Replies
11-23-2016, 04:25 AM
AmitMY
    Thread: Code completion suggestion
Post: RE: Code completion suggestion

InsiteFX Wrote: (11-22-2016, 07:17 AM) -- It is suppose to be in the next version of phpStorm. -- I was not aware. It is still tagged "Backlog" Thanks!
11,188 Views
10 Replies
11-22-2016, 07:29 AM
AmitMY
    Thread: Code completion suggestion
Post: RE: Code completion suggestion

Narf Wrote: (11-22-2016, 06:16 AM) -- This is not our problem really ... While it's nice for your tools to work as best as possible, it is the IDE vendor's job to make that work and not ours. Even...
11,188 Views
10 Replies
11-22-2016, 06:48 AM
AmitMY
    Thread: Code completion suggestion
Post: Code completion suggestion

Because CI uses dynamic class members for every loaded thing PHP Code: -- foreach (is_loaded() as $var => $class) { $this->$var =& load_class($class); } -- IDEA like PHPStorm have difficulty w...
11,188 Views
10 Replies
11-22-2016, 05:01 AM
AmitMY
    Thread: Usage of some deprecated methods
Post: RE: Usage of some deprecated methods

Well OK, I am not using those.. They are used in "system\core\CodeIgniter.php" (CI 3.1.0)
4,923 Views
2 Replies
10-30-2016, 03:55 AM
AmitMY
    Thread: Usage of some deprecated methods
Post: Usage of some deprecated methods

Hi, I am not sure if this is the correct sub-forum. If it is not, please tell me where is the correct place. I am using PHP 7.0.9 with the latest release of CI (3.1.0) I added a hook for error ...
4,923 Views
2 Replies
10-29-2016, 07:46 AM
AmitMY
    Thread: [Feature] Database table size estimation
Post: RE: [Feature] Database table size estimation

InsiteFX Wrote: (10-28-2016, 03:44 AM) -- So use $this->db->query(''); -- But this is difference between DB drivers, and I am hoping I can make it run on at least MySQL and Postgres salain Wrote:...
5,542 Views
6 Replies
10-28-2016, 12:20 PM
AmitMY
    Thread: [Feature] Database table size estimation
Post: RE: [Feature] Database table size estimation

enlivenapp Wrote: (10-27-2016, 08:42 PM) -- What's wrong with these? http://www.codeigniter.com/user_guide/database/helpers.html#information-about-your-database http://www.codeigniter.com/user_...
5,542 Views
6 Replies
10-28-2016, 02:55 AM
AmitMY
    Thread: [Feature] Database table size estimation
Post: [Feature] Database table size estimation

When paginating an API for example, it is often crucial to know how many pages you have (or how many rows you have) so you will show the correct amount of pages, show infinite scrolling when needed, e...
5,542 Views
6 Replies
10-26-2016, 10:28 AM
AmitMY
    Thread: Catch 22 using DB_Forge
Post: RE: Catch 22 using DB_Forge

zknight Wrote: (10-26-2016, 10:07 AM) -- The easiest way around this would be to connect to an already existing database and run your create_database() function. -- That means that the migration wi...
3,921 Views
3 Replies
10-26-2016, 10:17 AM
AmitMY
    Thread: Catch 22 using DB_Forge
Post: RE: Catch 22 using DB_Forge

Any solution? Possible way to work around it?
3,921 Views
3 Replies
10-26-2016, 09:40 AM
AmitMY
    Thread: Catch 22 using DB_Forge
Post: Catch 22 using DB_Forge

I wrote a database migration tool using CI's DB_Forge It starts like this: $this->load->dbforge(); # Create database if not exists $this->dbforge->create_database("test", TRUE); If my database ...
3,921 Views
3 Replies
10-24-2016, 07:10 AM
AmitMY
    Thread: Make definitions safer
Post: RE: Make definitions safer

ciadmin Wrote: (10-18-2016, 11:56 AM) -- Have you modified index.php? The first line in the default CI3.1.0 one defines the ENVIRONMENT constant. -- I did. It seemed like the best place to load my ...
3,363 Views
2 Replies
10-20-2016, 02:02 PM
AmitMY
    Thread: DBForge should move to using ErrorException
Post: RE: DBForge should move to using ErrorException

I apologise. I meant to say that when I run it, and the database already exists, it shows an error. Here is the error it is showing, when running `create_database("default")` { "heading":"A Data...
2,632 Views
3 Replies
10-19-2016, 10:35 AM
AmitMY
    Thread: DBForge create_database if not exists
Post: RE: DBForge create_database if not exists

Thanks. Because there were no objections, I took the liberty to create a pull request
2,298 Views
2 Replies
10-19-2016, 10:30 AM
AmitMY
    Thread: Make definitions safer
Post: Make definitions safer

In the index, there is `define("ENVIRONMENT", ....)` However, for my case, and I guess a general case, the first line of the index loads a config file. For me, that config file the ENVIRONMENT defin...
3,363 Views
2 Replies
10-18-2016, 10:50 AM
AmitMY

Theme © iAndrew 2016 - Forum software by © MyBB