Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 1.7.0 Released
#61

[eluser]Crimp[/eluser]
The user_guide included with the official 1.7 download (downloaded from the front page last night) is not the right revision. The CSS file is outdated and the Form Validation class is not included.
#62

[eluser]dmiden[/eluser]
[quote author="DiRN" date="1224902238"]I am now getting errors with
Code:
$this->db->orderby("field1, field2")
as this is producing
Code:
ORDER BY `field1,` field2
[/quote]

CI Documentation:
Code:
$this->db->order_by('title desc, name asc');

// Produces: ORDER BY title DESC, name ASC

so instead use e.g.:
Code:
$this->db->order_by('field1 asc, field2 asc')
#63

[eluser]DiRN[/eluser]
[quote author="pistolPete" date="1224990899"]I also dislike the need to pass the initialisation parameter as an array.

For example I am using a Layout library and I am passing the layout's view to the constructor.
Code:
function Layout($layout = "frontend/layout")
    {
        $this->obj =& get_instance();
        $this->layout = $layout;
    }

Why should I pass an array when I just need one parameter and want to have a default value?[/quote]

This is the same issue I have with the change in the syntax to load libraries.
#64

[eluser]DiRN[/eluser]
[quote author="dmiden" date="1225033369"][quote author="DiRN" date="1224902238"]I am now getting errors with
Code:
$this->db->orderby("field1, field2")
as this is producing
Code:
ORDER BY `field1,` field2
[/quote]

CI Documentation:
Code:
$this->db->order_by('title desc, name asc');

// Produces: ORDER BY title DESC, name ASC

so instead use e.g.:
Code:
$this->db->order_by('field1 asc, field2 asc')
[/quote]

While that is the example in the documentation, nowhere in the documentation does it say that ASC, DESC, or RANDOM is required. Prior to CI 1.7.0, they certainly weren't needed.

I wouldn't mind seeing an old orderby restored to assist with the transition to order_by. Just like the changes to the second parameter when loading a library, this is another instance that will require me to make way too many changes. I'm probably sticking with CI 1.6.3 for a while.

I get that frameworks change and along with those changes often come syntax changes, but nowhere in the documentation to upgrade from 1.6.3. to 1.7.0 does it mention any of the syntax changes that have been discussed in this thread.
#65

[eluser]pankaj[/eluser]
[quote author="Rick Ellis" date="1224823795"]Code Igniter Version 1.7 has been released. This version contains a number of new features and enhancements, as well as many small improvements and bug fixes. For a list of all changes please see the Change Log.

If you are currently running Code Igniter please read the update instructions.

Note: If your browser does not display the 1.7 user guide please clear your cache and reload the page.[/quote]



Code Igniter Rocks, I was really waiting for new release as I just love.
Happy Coding.
#66

[eluser]Derek Jones[/eluser]
[quote author="Crimp" date="1225028002"]The user_guide included with the official 1.7 download (downloaded from the front page last night) is not the right revision. The CSS file is outdated and the Form Validation class is not included.[/quote]

You might double check your download and clear your caches.
#67

[eluser]dmiden[/eluser]
[quote author="DiRN" date="1225054288"]While that is the example in the documentation, nowhere in the documentation does it say that ASC, DESC, or RANDOM is required. Prior to CI 1.7.0, they certainly weren't needed.

I wouldn't mind seeing an old orderby restored to assist with the transition to order_by. Just like the changes to the second parameter when loading a library, this is another instance that will require me to make way too many changes. I'm probably sticking with CI 1.6.3 for a while.

I get that frameworks change and along with those changes often come syntax changes, but nowhere in the documentation to upgrade from 1.6.3. to 1.7.0 does it mention any of the syntax changes that have been discussed in this thread.[/quote]
While this is true that nowhere in the documentation does it say that ASC, DESC, or RANDOM is required, it applies to the valid syntax as outlined in the documentation.

Code:
// And using the syntax:
$this->db->order_by('field1, field2'); // is not a valid syntax.
// With 1.7 the valid syntax would be:
$this->db->order_by('field1', 'desc');
$this->db->order_by('field2', 'desc');
// Second parameter options are asc or desc, or random.
// OR:
$this->db->order_by('field1 desc, field2 desc');
// Using ('field option, field2 option2').
#68

[eluser]Rick Ellis[/eluser]
Can I make a request to those who have encountered bugs? Please post them in our bug tracker. It's really hard to track and resolve bugs in a single forum thread like this, where there are so many people posting. Thanks a lot...
#69

[eluser]JayTee[/eluser]
[quote author="stuffradio" date="1224994843"]... I'm counting down the days till CI 2.0 with the hopefully native Ajax support Wink[/quote]
Pardon me for interjecting here; but what do you mean by 'native' ajax support? I've been using ajax w/CI since release 1.5.4 and haven't run into any issues. There's a JSON library out there if you aren't using PHP 5 so you can json_encode and json_decode strings.

Just curious.
#70

[eluser]nizsmo[/eluser]
[quote author="JayTee" date="1225091015"][quote author="stuffradio" date="1224994843"]... I'm counting down the days till CI 2.0 with the hopefully native Ajax support Wink[/quote]
Pardon me for interjecting here; but what do you mean by 'native' ajax support? I've been using ajax w/CI since release 1.5.4 and haven't run into any issues. There's a JSON library out there if you aren't using PHP 5 so you can json_encode and json_decode strings.

Just curious.[/quote]

I think stuffradio means the AJAX library coming with the default CI download, instead of using a third party library written by someone else Smile




Theme © iAndrew 2016 - Forum software by © MyBB