Re: Auth/Session - obtaining user/loginname

2011-06-13 Thread PaulMan
Hello, here's a hint Auth Component it's execelent for very simple sistems ... you will be Reinventing the wheel Spent some more time with the Auth Component , it even gives you information about connected users http://book.cakephp.org/view/1255/AuthComponent-Methods#user-1264 On Jun 11, 6:32 

CakePHP 1.3 Route Problem????

2010-05-25 Thread PaulMan
Router::connect( '/:slug-n-:id', array('controller' = 'pages', 'action' = 'news_detail'), array( 'pass' = array('id', 'slug'), 'slug' = '.*', 'id' = '[\d]+' ) ); is this correct in CakePHP 1.3 ? it generates this error Warning (2): preg_match() [function.preg-match]:

Re: CakePHP 1.3 Route Problem????

2010-05-25 Thread PaulMan
( 'pass' = array('option'), 'option' = '.*', ) ); this could be a solution if the web pages was not already indexed in search engines with - on URL _ char should be accepted Is this a bug? or am i missing something here? On May 25, 11:55 am, PaulMan pho...@gmail.com wrote: Router

Re: inflector - class methods - slug ????

2010-02-11 Thread PaulMan
 pm, PaulMan pho...@gmail.com wrote: Thank you both!!! I used the patch you gave, and used mb_* functions to set string to lowercase ( i was having problems with chars like Ó and Á ) Martin what do you mean by: I will let you post the ticket though. Sorry im not a expert

inflector - class methods - slug ????

2010-02-10 Thread PaulMan
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î ô û ç '); results: �_õ_�_oe_ae_e_oe_ue_a_i_e_o_u_a_e_i_o_u_a_e_i_o_u_c the first three chars do not work, the first and second are used many times in Portuguese language... is this a bug? does anybody have a solution? best

Re: inflector - class methods - slug ????

2010-02-10 Thread PaulMan
, anler anle...@gmail.com wrote: You want to keep the url with your letters as they are? if that is the case, google by IDNA (International Domain Names ... or something, or the package Net_IDNA in pear.php.net) On Feb 10, 1:35 pm, PaulMan pho...@gmail.com wrote: echo Inflector::slug(' ã õ ï ö

Re: inflector - class methods - slug ????

2010-02-10 Thread PaulMan
characters. Actually I added those three to this version if you want the quick fix: http://bin.cakephp.org/view/1955811171 I will let you post the ticket though. On Feb 10, 2:02 pm, PaulMan pho...@gmail.com wrote: hello, echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î

Changing field names, need help

2009-10-06 Thread PaulMan
Hello, Select . Workflow.id as Fa, Workflow.name as Fb ... How can this be done using the 'fields' parameter for example var $belongsTo = array( 'Workflow' = array( 'className' = 'Workflow', 'foreignKey' = 'workflow_id',

Re: getNumRows()

2009-06-03 Thread PaulMan
I'm looking for the number of rows in Catalog not Product. $this-Product-Catalog-getNumRows() On May 29, 8:32 pm, Miles J mileswjohn...@gmail.com wrote: Why would it be 3, if the rows are 100? --~--~-~--~~~---~--~~ You received this message because you are

getNumRows()

2009-05-29 Thread PaulMan
Hello Everybody, On Product Model public $hasAndBelongsToMany = array('Category' ,'Catalog'); On Products_Controller $this-data=$this-Product-find('all',array('conditions'=array ('Product.active'=1),'limit'='100')); $this-Product-getNumRows() it returns 100 Products , this is OK but

afterFind on model behavour not working ... please help.

2009-05-14 Thread PaulMan
Hello, from brands_controller with $queryResult=$this-Brand-Product-Query($query); it never gets to sap behavior afterFind , but if i use with $queryResult=$this-Brand-Product-Find('list'); it works it there a reason for it? am i missing something? Best regards, here some more extra info..

Re: a question on model relationships

2009-05-14 Thread PaulMan
Try Tree Behavior for category-SubCategory-SubCategory , and workit all in the same model Category ... Product Model public $hasAndBelongsToMany = array('Category'); Category Model public $hasAndBelongsToMany = array('Product'); public $hasMany = array('SubCategory'=

Re: afterFind on model behavour not working ... please help.

2009-05-14 Thread PaulMan
o.k. I pulled the trigger hehe.. $this-Brand-Product-Behaviors-Trigger($this-Brand- Product,afterFind,array('results'=$queryResult,'primary'=true)); thanks, On May 14, 10:42 am, Jon Bennett jmbenn...@gmail.com wrote: Hi Paul, it there a reason for it? am i missing something? Callbacks

Re: a question on model relationships

2009-05-14 Thread PaulMan
No, I Tree has unique branches.. A Table for Dining Room , is not a table for a Living Room but i think if you reverse the order you will get more organized put Tables( id:5 ) - Living Room ( id:6 ) Tables( id:5 ) - Dinning Room ( id:7 ) * ids are only examples and on the

For Set::combine experts...

2009-05-14 Thread PaulMan
Hello, This technique is new to me, and i cant make set::combine to work the way i want... here is; I Have Array ( [0] = Array ( [products] = Array ( [id] = 19430 [code] = 000117

Re: For Set::combine experts...

2009-05-14 Thread PaulMan
 pm, PaulMan pho...@gmail.com wrote: Hello, This technique is new to me, and i cant make set::combine to work the way i want... here is; I Have Array (     [0] = Array         (             [products] = Array                 (                     [id] = 19430

Re: a question on model relationships

2009-05-14 Thread PaulMan
You should analize you problem realy good, I has a similar problem, on a Food Chain Distribution B2b Site and it worked 5 Stars for me. Good Luck... On May 14, 4:28 pm, brian bally.z...@gmail.com wrote: On Thu, May 14, 2009 at 6:50 AM, PaulMan pho...@gmail.com wrote: No, I Tree has

- Inflector - Slug function - map array ã and õ characters missing

2009-04-27 Thread PaulMan
Hello everybody, I dont know if this helps but ... I found that is missing some caracters on MAP array , like ã and õ for the portuguese characters... is there a reason for this, or cakephp development team just forgot to include them.??? here is my new version... $map = array(

Configure CakePHP not to use Pretty Urls

2009-01-27 Thread PaulMan
Hello everybody, Is there a way to configure CakePHP NOT to use Pretty Urls? I'm using the latest version. Best Regards PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread PaulMan
Cake libraries unless you are developing CakePHP itself. On Jul 13, 6:51 pm, PaulMan [EMAIL PROTECTED] wrote: Done.. where's how: New version of: class Event extends AppModel { var $name = 'Event'; var $displayField= 'description'; var $belongsTo=array('Pool

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread PaulMan
the actual Cake libraries unless you are developing CakePHP itself. On Jul 13, 6:51 pm, PaulMan [EMAIL PROTECTED] wrote: Done.. where's how: New version of: class Event extends AppModel { var $name = 'Event'; var $displayField= 'description'; var $belongsTo=array('Pool

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-13 Thread PaulMan
://book.cakephp.org/view/113/code-generation-with-bake to materialize the scaffold code and start coding the application logic On Sun, Jul 13, 2008 at 12:18 PM, PaulMan [EMAIL PROTECTED] wrote: Hello Everyone, Using Scaffold, I Have a Model Event that belongsTo Result. The Problem is when

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-13 Thread PaulMan
the rest or is a good hack? On 13 Jul, 17:28, PaulMan [EMAIL PROTECTED] wrr ote: thank's for the quick reply, i already had read that articles, but i did no found the solution, the problem is on the Edit action for events, that's where i want to filter results, so that the final user can select