• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Routes.php not working right for CTLModulemaker (Solved)
PostPosted: Thu May 17, 2012 7:31 am 
Offline
Forum Members
Forum Members

Joined: Fri Nov 28, 2008 10:28 pm
Posts: 127
Hi I am trying to get those to work together but no luck. Can anyone help. I would be so happy if someone help fix this problem.

I can get one to work or the other to work but not both, I would like them both working together.

Thank you

Andrew

Code:
<?php
$hierarchies = array();
   
      $routes = array(   

         array(   'rule' => '"MediaCenter\/(?P<videos>[^/]+)\/(?P<item>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'videos'    => 'param',
                              'item'      => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'item')
         ),

         array(   'rule' => '"MediaCenter\/(?P<videos>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'videos'    => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'videos')
         ),
        array(   'rule' => '"MediaCenter\/(?P<categories>[^/]+)\/(?P<item>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'categories'    => 'param',
                              'item'      => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'item')
         ),

         array(   'rule' => '"MediaCenter\/(?P<categories>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'categories'    => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'categories')
         )      
      
      );




I can get this work on its own.

Code:
  array(   'rule' => '"MediaCenter\/(?P<videos>[^/]+)\/(?P<item>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'videos'    => 'param',
                              'item'      => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'item')
         ),

         array(   'rule' => '"MediaCenter\/(?P<videos>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'videos'    => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'videos')
         ),


I can get this work on its own.

Code:
array(   'rule' => '"MediaCenter\/(?P<categories>[^/]+)\/(?P<item>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'categories'    => 'param',
                              'item'      => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'item')
         ),

         array(   'rule' => '"MediaCenter\/(?P<categories>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'categories'    => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', 'what'=>'categories')
         


Last edited by andrewvideo on Tue May 22, 2012 8:21 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Routes.php not working right for CTLModulemaker
PostPosted: Sun May 20, 2012 1:10 am 
Offline
Forum Members
Forum Members

Joined: Fri Nov 28, 2008 10:28 pm
Posts: 127
Anyone can help please ;( lol


Top
 Profile  
 
 Post subject: Re: Routes.php not working right for CTLModulemaker (Soved)
PostPosted: Tue May 22, 2012 8:21 pm 
Offline
Forum Members
Forum Members

Joined: Fri Nov 28, 2008 10:28 pm
Posts: 127
After few days trying out a error I got it working.

Code:
<?php
$hierarchies = array();   
      $routes = array(   

         array(   'rule' => '"MediaCenter\/(?P<what>[^/]+)\/(?P<alias>[^/]+)\/(?P<returnid>[0-9]+)$"',
               'builder' => array(   'MediaCenter'    => 'string',
                              'what'    => 'param',
                              'alias'      => 'param',
                              'returnid'   => 'param'
                           ),
               'defparams' => array('action'=>'default', )
         )      
      );       


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting