CodeIgniter Forums
Please consider querystring support in 2.x - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Please consider querystring support in 2.x (/showthread.php?tid=31698)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]WanWizard[/eluser]
@skunkbad is right.

The preferred way is to extend the library. Don't start modifying the core classes unless you have the tools and the experience to perform code merge operations.


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]DJMOHNL[/eluser]
[quote author="WanWizard" date="1280583346"]@skunkbad is right.

The preferred way is to extend the library. Don't start modifying the core classes unless you have the tools and the experience to perform code merge operations.[/quote]

i find this not the right sentence. Wen youll find another usefull plugin wich needs MY_Input.php youll need to add the functions to the one you already have. The core classes wont harm your CodeIgniter Framework.


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]WanWizard[/eluser]
The point is that when you want to upgrade your system folder to a new version of CI, are you going to remember all changes you have made to the old version? So you can reapply them to the new code?
If not, chances are that your site doesn't work anymore after an upgrade of CI.

To deal with that, you'll need tools to track your changes, i.e. a version control system (Subversion, Git, Mercurial, ...), and you need to know how to perform merge operations, so you can merge your changes with the code of the new CI version.


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]DJMOHNL[/eluser]
[quote author="WanWizard" date="1280596070"]The point is that when you want to upgrade your system folder to a new version of CI, are you going to remember all changes you have made to the old version? So you can reapply them to the new code?
If not, chances are that your site doesn't work anymore after an upgrade of CI.

To deal with that, you'll need tools to track your changes, i.e. a version control system (Subversion, Git, Mercurial, ...), and you need to know how to perform merge operations, so you can merge your changes with the code of the new CI version.[/quote]

only amateurs would need that, its all on this forum..;) and nothing will be non-workin after these changes.


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]WanWizard[/eluser]
I give up.


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]DJMOHNL[/eluser]
[quote author="WanWizard" date="1280608854"]I give up.[/quote]

you must know its my opinion ..Tongue


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]pbreit[/eluser]
Putting the changes in "MY_" extensions is a better option for most developers. As has been pointed out, this is the "correct" way to extend CodeIgniter and allows for updating CI Core without worries. When performance becomes and issue (a good problem to have), you can make the easy optimizations.


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]pbreit[/eluser]
Does this relatively easy solution solve the problem?
Code:
$config['enable_query_strings'] = TRUE;
$config['uri_protocol'] = "PATH_INFO";
http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html


Please consider querystring support in 2.x - El Forum - 07-31-2010

[eluser]skunkbad[/eluser]
[quote author="pbreit" date="1280652637"]Does this relatively easy solution solve the problem?
Code:
$config['enable_query_strings'] = TRUE;
$config['uri_protocol'] = "PATH_INFO";
http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html[/quote]

You should read the docs, because enable_query_strings is different:
http://ellislab.com/codeigniter/user-guide/general/urls.html

If you are using enable_query_strings you will have to build your own URLs, rather than utilizing the URL helpers (and other helpers that generate URLs, like some of the form helpers) as these are designed to work with segment based URLs.


Please consider querystring support in 2.x - El Forum - 08-01-2010

[eluser]pbreit[/eluser]
The article seems to indicate that this solutions supports mixing segments and querystrings?