Re: Routing related issue

2009-09-27 Thread stevel
I figured it out finally. To solve the problem, I use the $html->url helper. In this case it will be url: "url('/publishers/update_city_select'); ?>" Perhaps this might help someone else with the same problem. cheers, Steve --~--~-~--~~~---~--~~ You received th

Routing related issue

2009-09-27 Thread stevel
I encountered an issue related to routing which I hope someone can help me understand. I have a controller called publishers and an action called search. In this search view I have an ajax form which upon change to the form select, calls an action to get the options for a second form select. When

Re: HABTM confusion

2009-07-21 Thread stevel
, array ('TblDetail.ap_advertiser LIKE'=>"%".$searchstr."%")); and I got the result I was looking for. On Jul 20, 9:46 pm, stevel wrote: > Been trying to make sense of HABTM relationship. Hope someone could > help throw some light on this. > I have the follow

HABTM confusion

2009-07-20 Thread stevel
Been trying to make sense of HABTM relationship. Hope someone could help throw some light on this. I have the following models defined: class TblCategory extends AppModel { var $name = 'TblCategory'; var $hasAndBelongsToMany = array('TblDetail'=>array(

Re: Question about the actions in aros_acos

2009-02-20 Thread stevel
I'm not an expert in this. This is my understanding. How the 4 action settings are used depends on the type of authorization mode you are using. If you select the CRUD mode Auth->authorize = 'crud', then the full functionality of the aros_acos table will be utilized, so that access will be granted

Re: How to Redirect After Session Has Expired

2009-02-20 Thread stevel
Alfredo, I'm using ACL/Auth and I do not seem to have this problem. After the session timed out, when I tried to access any restricted places, I was redirected to the login page. Don't know if my using ACL has anything to do with it. BTW how do you tell if your session has expired? In my case, I

Re: Stuck on Routing.

2009-02-17 Thread stevel
ass array: > > Router::connect('/press_releases/:year/:month/:day/:slug', >        array('controller'=>'presses','action' => 'view'), >        array( >            'year' => '[12][0-9]{3}', >            'mon

Stuck on Routing.

2009-02-17 Thread stevel
Can someone please help figure what is wrong with my route? I have been trying for hours and yet could not figure out what the mistake is. I have the following route defined: Router::connect('/press_releases/:year/:month/:day/:slug', array('controller'=>'presses','action' => 'view'),

Re: No password hashing

2009-02-16 Thread stevel
Not quite sure what you were trying to do. How are you creating a new user? Using the Add function in the User controller? If you are, then the password will automatically be hashed by the ACL/Auth before it is saved to the database. On Feb 16, 1:36 pm, toby1kenobi wrote: > Hi there, > >   I'v

Re: Alternative Routing for RSS

2009-02-13 Thread stevel
Martin, I tend to agree with you that the rss folder is basically to have two views of the same name but different types. Like you said, since I'm only catering one view with the rss_feed action, it isn't all that important to have it in the rss folder. However if I move the view file one level up