Welcome Guest, Not a member yet? Register   Sign In
Controller not recieving my parameter
#5

[eluser]Joures[/eluser]
Yeah, ther is some code you're not seeing

Code:
<?php

class Subcategories extends Controller {
    
    public function display($id) {
        
     // fetching subcategories depending on $id
     $vars['categories'] = Doctrine_Query::create()
         ->select('s stuff')
         ->from('Stuff s')
         ->where('s.Parent_id = ?', $this->id)
         ->execute();
    }
}
I've tried your solutions, and it works, as long as i'm referencing $id alone, instead of $this->id. Any ideas as to why that is?


Messages In This Thread
Controller not recieving my parameter - by El Forum - 11-11-2010, 06:58 AM
Controller not recieving my parameter - by El Forum - 11-11-2010, 10:20 AM
Controller not recieving my parameter - by El Forum - 11-11-2010, 11:20 AM
Controller not recieving my parameter - by El Forum - 11-11-2010, 02:16 PM
Controller not recieving my parameter - by El Forum - 11-12-2010, 12:43 AM
Controller not recieving my parameter - by El Forum - 11-12-2010, 01:42 AM
Controller not recieving my parameter - by El Forum - 11-12-2010, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB