Welcome Guest, Not a member yet? Register   Sign In
how to use native php get method
#1

[eluser]samitrimal[/eluser]
Code:
if(!$this->session->userdata('lregion_id')){
        
      $this->session->set_userdata('lregion_id','33');
$this->SomeModel->SomeFunction(this->session->set_userdata('lregion_id'));
     }
     else{
        $somevar= $_GET['ffd'];
$this->SomeModel->SomeFunction(this->session->set_userdata('lregion_id'));
     }
Here i cannot use codeigniter uri segments because the the code i am using is in the library which extends ci controller .I need to change the whole application in this case
so i need help to use the get method of php .need help
#2

[eluser]toopay[/eluser]
Code:
$this->input->get('foo');
#3

[eluser]samitrimal[/eluser]
it works ! thank u
#4

[eluser]toopay[/eluser]
There are several weird things for me, as a developer, when i taste CI at the first time. Just to mention, how CI (especially in earliar version, 1.7.x) maintain $_GET, $_POST and url like http://mysite.com/index.php?c=products&m=view&id=345 (enabled query string) and so on, is lil bit funny at that time. But because in fact using this framework does speed up my development times, then i doesn't complain.

After six month using this framework, lately i realize that every reasons behind that weird things, is : security(believe it or not) ;-) Soon, you can adapt their pattern and coding standard, then you will realize how much time can you save, with this frameworks. Means, you doesnt need anymore (or atleast, it will took less time) to write your own security modules/procedures, because they already do it(at least the "big part") for you. Also there are huge number of helper and library(but not excessive as Zend, lol), which will make your life easier. You will not found this "capabilities" on 'dry' framework, like Kohana for example.

Indeed CI is one of my favourite PHP framework among other frameworks that i've been used, that i can count on ;-)




Theme © iAndrew 2016 - Forum software by © MyBB