Re: The (bad) perception and image of CakePHP in the public

2014-10-01 Thread Stefano Zoffoli
has a strong community that continues to mantain, test and develop this awesome framework to achieve new standards and functionality (ie. psr, composer...) -- Stefano Zoffoli *Resp. Sviluppo Software* 347 8180258 *Librasoft Snc* www.LibrasoftSnc.it <http://www.librasoftsnc

Re: Cake 3 - Accessing user session in models

2014-07-23 Thread Stefano Zoffoli
Thank you! -- Stefano Zoffoli *Resp. Sviluppo Software* 347 8180258 *Librasoft Snc* www.LibrasoftSnc.it <http://www.librasoftsnc.it/> www.ProgettoKuma.it <http://www.progettokuma.it/> 0543 424612 2014-07-23 18:18 GMT+02:00 José Lorenzo : > The displayField you can get it

Re: Cake 3 - Accessing user session in models

2014-07-23 Thread Stefano Zoffoli
Thank you, this is a very nice solution and it worked perfectly! How can I pass extra infos for Logs' description field? (i mean like a custom prefix string and the entity displayfield's value?) -- Stefano Zoffoli *Resp. Sviluppo Software* 347 8180258 *Librasoft Snc* www.LibrasoftSn

Re: Cake 3 - Accessing user session in models

2014-07-23 Thread Stefano Zoffoli
} But AuthComponent::user() is not static and gave me fatal error. -- Stefano Zoffoli *Resp. Sviluppo Software* 347 8180258 *Librasoft Snc* www.LibrasoftSnc.it <http://www.librasoftsnc.it/> www.ProgettoKuma.it <http://www.progettokuma.it/> 0543 424612 2014-07-23 12:40 GMT+02:00 José

Cake 3 - Accessing user session in models

2014-07-23 Thread Stefano Zoffoli
ple way to access that information outside of Controllers. How can i do that? Thank you -- Stefano Zoffoli *Resp. Sviluppo Software* 347 8180258 *Librasoft Snc* www.LibrasoftSnc.it <http://www.librasoftsnc.it/> www.ProgettoKuma.it <http://www.progettokuma.it/> 0543 424612 -- Lik

Re: CakePHP 3.0.0 dev preview 1 released

2014-01-06 Thread Stefano Zoffoli
Thank you guys for your great work! I think your courage will be repaid in the future, can't wait to upgrade the cms of my company! Keep up the good work and thank you again. -- Stefano Zoffoli *Resp. Sviluppo Software* 347 8180258 *Librasoft Snc* www.LibrasoftSnc.it

Re: loading models in beforeFilter

2013-01-13 Thread Stefano Campanella
Nevermind, there was a mistake in a part of the Group class I'd have never thought of XD On Sunday, January 13, 2013 12:15:56 PM UTC+1, Stefano Campanella wrote: > > >> > >> I'm using the datasources plugin, but it is not used in this > particular controll

Re: loading models in beforeFilter

2013-01-12 Thread Stefano Campanella
oes against the conventions as far as I know. Il giorno 13/gen/2013 00:08, "AD7six" ha scritto: > > > On Saturday, 12 January 2013 23:23:31 UTC+1, Stefano Campanella wrote: >> >> Hi all, >> I am trying to find a way to successfully load a model in before Filter >&

loading models in beforeFilter

2013-01-12 Thread Stefano Campanella
Hi all, I am trying to find a way to successfully load a model in before Filter without causing the explosion of my controller :D I am working on CakePHP 2.3.0 RC2 Basically, I am calling ClassRegistry::init() to load a model in AppController's beforeFilter() and it works perfectly. The only pro

Re: queries on HABTM relationships

2013-01-03 Thread Stefano Campanella
2013 8:03:24 PM UTC+1, cricket wrote: > > On Wed, Jan 2, 2013 at 8:32 PM, Stefano Campanella > > wrote: > > Yes I am sure. In my case id is not numeric, the permission name is > already > > an identifier for the permission > > Your DB schema is broken by design,

Re: queries on HABTM relationships

2013-01-02 Thread Stefano Campanella
numeric. > > Em terça-feira, 1 de janeiro de 2013 19h23min58s UTC-3, Stefano Campanella > escreveu: >> >> Hello all, >> this is my first time posting here. I recently started to study how to >> use CakePHP and I'm trying to develop a website. >> In m

Re: queries on HABTM relationships

2013-01-02 Thread Stefano Campanella
t; > 'GroupPerm.perm_id' => 'Perm.id' > > ) > > ) > > ) > > ) > > ); > > > > However, I've left out t

Re: queries on HABTM relationships

2013-01-02 Thread Stefano Campanella
what records it has, put this in your UsersController login method: > > die(debug($this->Auth->user())); > > > http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#accessing-the-logged-in-user > > > On Tue, Jan 1, 2013 at 5:23 PM, Stefano Camp

Re: queries on HABTM relationships

2013-01-02 Thread Stefano Campanella
Yes I did, but it does not suit my needs or my organization structure. For me it's at the same time too complicated and too limited. I don't need a tree, I need a graph, where a user can have more than one group; because users can be categorized in more than one way. Anyway, do you have any ide

queries on HABTM relationships

2013-01-01 Thread Stefano Campanella
Hello all, this is my first time posting here. I recently started to study how to use CakePHP and I'm trying to develop a website. In my website I am writing a custom authorize component where each user get one or more groups and each group has one or more permissions associated to it. I have pr

Re: The new Hash class and complex find statements.

2012-07-09 Thread Stefano Zoffoli
So it isn't possible? -- Dott. Stefano Zoffoli *Web Development & Internet Technologies * *Librasoft Snc *http://www.librasoftsnc.it Via della Luna, 13 47034 Forlimpopoli (FC) Tel. +39 0543 424612 Fax +39 0543 424612 2012/7/6 ankit patel > Stefano Zoffoli I think you are right

Re: The new Hash class and complex find statements.

2012-07-06 Thread Stefano Zoffoli
Nope, This gives me only "Content" values, i also want the associated "User" array. ( in my example i inverted the arguments of Hash::extract(), but that is not the problem ) -- Dott. Stefano Zoffoli *Web Development & Internet Technologies * *Librasoft Snc *http://www.l

The new Hash class and complex find statements.

2012-07-06 Thread Stefano Zoffoli
=> array( ... ), ), ); I tried to convert that function call with the new Hash class, but i failed. I tried: Hash::extract('{n}.Content[type=Article]', $items); Hash::extract('{n}.Content[type=Article]..', $items); Hash::extract('{n}[Content.type=Article]', $item

Re: Apache ignores some .htaccess instruction

2011-12-13 Thread Stefano Zoffoli
Thank you very much, this has solved the problem. This was because i had asset files in theme webroot folder. Thanks again! -- Dott. Stefano Zoffoli *Web Development & Internet Technologies * *Librasoft Snc *http://www.librasoftsnc.it Via della Luna, 13 47034 Forlimpopoli (FC) Tel. +39

Re: Apache ignores some .htaccess instruction

2011-12-13 Thread Stefano Zoffoli
ol' => 'public, max-age=' . ($time - time()), 'Pragma' => 'cache' )); } Is there a Cake way to set different expire dates based to resource type or to disable this headers so i can use .htaccess file? Thanks in advance -- Dott. Stefano Zoffoli *Web Develo

Apache ignores some .htaccess instruction

2011-12-12 Thread Stefano Zoffoli
; instruction in the .htaccess. mod_expires in Apache is enabled. How can i do to get caching work? Thanks in advance. -- Dott. Stefano Zoffoli *Web Development & Internet Technologies * *Librasoft Snc *http://www.librasoftsnc.it Via della Luna, 13 47034 Forlimpopoli (FC) Tel. +39 0543 424612 Fax

cake-sql-log in my layout

2011-11-05 Thread Stefano
how i can show in my layout the executed queries? for example : /view/layout/my_layout.ctp -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others w

Re: Save in differents models

2011-06-17 Thread Stefano Salvatori
try with $this->TurisSit->saveall($this->data); S. > TuristSit On Jun 17, 2011, at 12:17 AM, csoria wrote: > Hi i'm new in cakephp > > I'm starting to do an application and i'm wondering if i can save in > different models from one form. > > For more specific: > > I have three models > T

New project, what version?

2011-03-20 Thread Stefano
Hello, We're starting a new project and settled to use cakephp as out framework. What version would you suggest to use? The project should be ready to release in 4 months, as per our plan. It's a good idea to start developing with cakephp 2.0.0-dev or should we use 1.3 and upgrade later? Thanks f

Re: Display data from specific data in the Home Page

2010-12-26 Thread Stefano Salvatori
>> at http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" gro

Re: Validation (Check If username Exists Display Error Message)

2010-12-17 Thread Stefano Salvatori
/cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send e

Re: set($data) dosen´t work

2010-07-10 Thread stefano
hp@googlegroups.com >> To unsubscribe from this group, send email to >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: Cronjob like in cakephp

2010-07-10 Thread stefano
u are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://

Re: Building a 2-level relationship

2010-06-24 Thread stefano
options, visit this group at > http://groups.google.com/group/cake-php?hl=en > check containble http://book.cakephp.org/view/474/Containable s. -- Stefano Salvatori M. http://stefano.salvatori.cl/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their C

Re: How do I save a field on my User without breaking the ACL?

2010-06-04 Thread stefano
try with $this->data["User"]["group_id"] = $this->Session- >read("Auth.User.group_id"); :) s. On May 24, 10:59 am, Jon Chin wrote: > I'm using Auth and db ACL, but I have an action that screws up my ACL > records every time.  I have ACL set up just like the Book instructs.  I'm > building a "c

Re: How do I save a field on my User without breaking the ACL?

2010-06-04 Thread stefano
i have the same problem :( any idea?? On May 24, 9:25 pm, Jon Chin wrote: > I tried that and have the same result.  Do I need to unbind a relationship > or something? > > On Mon, May 24, 2010 at 2:06 PM, Filipe Teles Rodrigues < > > > > > > filipe.t2...@gmail.com> wrote: > > I use $this->User->sa

Re: CakePHP CORE as Git submodule

2010-05-18 Thread stefano
the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@google

Re: Issue with find('list')

2010-05-11 Thread Stefano Martins
s->Configuration-FinishedProduct->find('list')); > > Jeremy Burns > jeremybu...@me.com > On 11 May 2010, at 22:25, Stefano Martins wrote: > > > > > Hey folks, > > > I have two controllers: ConfigurationsController and > > FinishedProductsController. He

Re: edit last row in the table.

2010-05-11 Thread Stefano Martins
This should do the trick: public function bla() { $lastPost = $this->Post->find('first', array('order' => array('Post.id DESC'), 'limit' => '1')); } Cya! On 11 maio, 09:42, Andrei Mita wrote: > Do you want to edit the last row or the last inserted row? > > > > On Tue, May 11, 2010 at 3:

Re: help material aid to research

2010-05-11 Thread Stefano Martins
Pratically everything that I need helping me develop is in book.cakephp.org. What exactly do you need for your research? PS: Outro brasileiro, hehehehe. On 11 maio, 01:16, alair wrote: > hello > I am developing my course conclusion work on frameworks for PHP, and > the cake is one of them, but I

Issue with find('list')

2010-05-11 Thread Stefano Martins
Hey folks, I have two controllers: ConfigurationsController and FinishedProductsController. Here's the code for the ConfigurationsController: data)) { $this->set('finished_products', $this->Configuration- >FinishedProduct->find('list'));

Re: hasAndBelongsToMany Relationship

2010-05-09 Thread Stefano Martins
I'm having problem saving data. I'm building the view for the action, but I don't really know how to save data in this case, 'cos I can't figure out how to make the view using the $formHelper, receiving the data using the $this->data in the controller and using the $this- >Something->save() method

hasAndBelongsToMany Relationship

2010-05-08 Thread Stefano Martins
Hello folks, I'm having the following problem to solve with CakePHP, but I'm kinda without any north, probably a silly question... Developing a software which controls production orders and stock, each finished product consists of a group of items, in a hasAndBelongsToMany relationship. The usual

Re: Problem with Auth Component hashes

2010-04-20 Thread Stefano Martins
, Apr 18, 2010 at 6:43 PM,StefanoMartins wrote: > > > > Hello folks, > > > > As I was studying CakePHP and the Auth Component, I've found out that > > > it's not using sha1 hashes - or at least it doesn't seems to - by > > > default. I had to ma

Problem with Auth Component hashes

2010-04-18 Thread Stefano Martins
Hello folks, As I was studying CakePHP and the Auth Component, I've found out that it's not using sha1 hashes - or at least it doesn't seems to - by default. I had to manually set it to use md5 hashes, following the instructions given by the Cookbook. For the string "stefano

Re: Problem setting the page title with the $pageTitle variable

2010-04-17 Thread Stefano Martins
Thanks, it worked! On 17 abr, 14:08, Jon Bennett wrote: > Hi, > > > I'm using CakePHP version 1.3.0-RC4 and I'm pretty much satisfied. > > However, I'm having a little annoying problem. I cannot set the page > > title neither way. I've tried to define it on the controller and in > > the view of m

Problem setting the page title with the $pageTitle variable

2010-04-17 Thread Stefano Martins
Greetings, I'm using CakePHP version 1.3.0-RC4 and I'm pretty much satisfied. However, I'm having a little annoying problem. I cannot set the page title neither way. I've tried to define it on the controller and in the view of my application using the $pageTitle variable and the $this- >set('title

Simple HTML DOM Parser Integration

2010-04-15 Thread Stefano
Hi, I've found this tool http://simplehtmldom.sourceforge.net/ I need to parse an external html page and import some data in my db. Now this would be a great tool, and I've seen that it works out of cakephp, but I really am not able to make a component out of it. I've tried, but with no luck. Do y

Re: find if exists any hasmany relationship

2010-03-22 Thread stefano
thanks On Mar 22, 5:39 am, WebbedIT wrote: > Are you wanting an INNER JOIN so it will only find records where Poll > has Section and has Question. > > If this is the case then I would define counterCache true on your > Section and Question belongsTo associations and add a section_count > and ques

find if exists any hasmany relationship

2010-03-21 Thread stefano
Hello I have a question about find('all') i need get all the records that have any relation in the database for example polls hasmany sections sections hasmany questions i need all the polls that have any sections and this section have any questions any idea how do that using the cake's way? s

help with some deep relatios

2010-02-21 Thread stefano
Hi i looking for the correct cakephp's way to this This are my models Area hasMany Poll Poll hasMany Answer Institution hasMany Answer Now i need show the Answer group by Poll and Area by a year and and for institutions the output is some like this Result for "Instutition.name" for the year "Y

Clone register and all his relationship

2010-02-15 Thread stefano
Hello There is a cakephp's way to clone register and all this relationship?? updating all the id field and created Now i'm doing some like this model.php function clone($id) { $this->find('first',array('conditions'=>array("Model.id"=>$id)); then search all this relationship and unset(a[model]

asset in cakephp 1.3

2010-02-02 Thread stefano
Hi i'm using cakephp 1.3 :) The Asset plugin of pseudocoder.com work in this version of cake? or there are others ways to do that?? Thanks S. -- Stefano Salvatori M. http://stefano.salvatori.cl/ Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Pretty URLs don't work without .htaccess ?

2010-01-30 Thread stefano
d email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com for more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Stefano Salvatori M. http://stefano.salvatori.cl/ Check out the n

Re: looking for developer (Were based in Cleveland, Ohio)

2010-01-27 Thread stefano
isit this group at > http://groups.google.com/group/cake-php?hl=en > -- Stefano Salvatori M. http://stefano.salvatori.cl/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Goog

Re: Logout link in layout

2009-12-24 Thread stefano
is >> group at http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP

Re: 1.3 JsHelper getting started - basic question

2009-12-23 Thread stefano
; "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Stefano Sal

InPlaceCollectionEditor custom key

2009-11-15 Thread Stefano
Hi all, I have a problem, since I don't know how to pass an array to ajax- >editor() with the collection options. I need to pass my data in order to have with a certain value (the key of my array) and a label (the value of my array). In the ajax manual I read For explicit value attributes, use a

Re: How to calculate the difference of date between 2 different rows?

2009-06-18 Thread stefano
; at the second row, they are 5/6/2009 and 10/6/2009 respectively > how can i create a view to determine the duration between the two > dates between rows respectively? > as in planned duration:5/6/2009 - 3/6/2009 and actual duration is > 10/6/2009 - 4/6/2009 > > >

BEdita - cakephp semantic content management framework

2009-05-06 Thread Stefano Rosanelli
erface & contents, specialized module for translators * ability to create "free semantic relations" between contents * every object has a unique "nickname" (friendly URLs and friendly name to access each resource) * native XML/REST interface * and many others... bye Stef

Re: What do you develop in (ide, text editor, etc.)?

2009-03-02 Thread stefano
netbeans 6.5 :) On Mon, Mar 2, 2009 at 6:20 PM, bberg wrote: > > Coda. From www.panic.com > > > > -- Stefano Salvatori M. http://stefano.salvatori.cl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: database.php file change to postgresql stops graphics

2009-01-28 Thread stefano
the "Cake can (not) connect to the > database". This almost certainly indicates that php doesn't have the > postgres extension loaded. > > AD > > > -- Stefano Salvatori M. http://stefano.salvatori.cl/ --~--~-~--~~~---~--~~

Livesearch with jquery

2009-01-18 Thread stefano
I'm looking for a howto to do an livesearch using jquery any idea? thanks :D -- Stefano Salvatori M. http://stefano.salvatori.cl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: Installation on a shared server (Hostmysite.com)

2009-01-16 Thread stefano
hat may have caused the error. > > More information about this error may be available in the server error > log. > > I have tried searching google for people's experience with cakephp and > hostmysite, but haven't found anything usefull > > Thanks i

Re: Using a different path for image storage

2009-01-16 Thread Stefano Manfredini
config is: img paths are relative to "app/webroot/img" Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubsc

Re: unwanted user_id increase

2009-01-15 Thread stefano
f($postsaved && $usersaved) { >$this->flash('The post has been saved.', '/posts'); >} >} > } > > How to solve this problem? > > > -- Stefano Salvatori M. http://stefano.salvatori.cl/ --~--

Best way to upload images

2009-01-11 Thread Stefano Martins
Hey folks, I'm begining with CakePHP and I'm thinking that it's a awesome framework and I'm trying to imagine ways to do most any web application with it. But, as beginners are just beginners, I'm having some problems with it. This time, I'm trying to upload an image with a form. I was googling

Re: Unexpected (missing) result with findAll() on Cake 1.1.19

2008-07-09 Thread stefano
Martin, thank you very much for your help... I'm going to further investigations. When solved I post the solution here. Thank you again Stefano On 9 Lug, 09:29, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If the query returns the correct amount of rows but they

Re: Unexpected (missing) result with findAll() on Cake 1.1.19

2008-07-08 Thread stefano
, same mysql server, even same db. Any other hint? Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from thi

Unexpected (missing) result with findAll() on Cake 1.1.19

2008-07-07 Thread stefano
'00019276', '00019275', '00019274', '00019273', '00019272', '00019271', '00019269', '00019268', '00019267', '00019266', '00019265', '00019264', '00019263', '00019262',

Re: Nested queries using findAll with IN

2008-04-11 Thread Stefano
On Apr 11, 12:08 am, Grant Cox <[EMAIL PROTECTED]> wrote: > Use "-!" if you want to tell Cake not to escape things - eg Thank you, it works! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

Nested queries using findAll with IN

2008-04-10 Thread Stefano
Hi there, I have a problem I can't solve. I need to build up this query SELECT `Runner`.`id`, `Runner`.`name`, `Runner`.`surname`, `Runner`.`nationality` FROM `runners` AS `Runner` WHERE ((`Runner`.`name` LIKE '%mark%') OR (`Runner`.`surname` LIKE '%mark %')) AND `Runner`.`id` IN (SELECT runner_i

bug for find('All'

2008-01-02 Thread stefano
i think that i found a bug en find('All'. i have this source echo $tag; $res = $this->Tag->find('All',array('conditions' => array('nombre' => "%".strtolower($tag)))."%"); and i get this error musica Query: SELECT `Tag`.`Array%` FROM `tags` AS `Tag` WHERE All LIMIT 1 any idea ? how can h

Problem with FormHelper in cake1.2.0.5875

2007-12-27 Thread stefano
Hello i have a litle problem with FormHelper in cake1.2 :P i have this in my view Año publicación year('year',1970,date('Y'), 2007,array('label'=>false)); ?> but the html source is

Problems with save

2007-12-03 Thread stefano
Hello i'm using the las version of cakephp1.2 i have a problem with Model->save this is my source --- if(!empty($this->data)) { foreach ($this->data["Tiposviajesusuario"] as $tipo) { $t["Tiposviajesusuario"]["usuario

Re: Installing PHPLIST with cakephp

2007-10-09 Thread stefano
Maybe this can help: http://groups.google.com/group/cake-php/browse_thread/thread/88486a5e156d7242/c3b9a9bd6f861d99#c3b9a9bd6f861d99 ciao Stefano On 9 Ott, 10:16, M <[EMAIL PROTECTED]> wrote: > Hello, I have the following problem. > > I would like to use PHPLIST on the same

Re: problem with validator cakephp 1.2

2007-08-11 Thread stefano
ame`), UNIQUE KEY `email` (`email`,`username`), KEY `group_id` (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; and when i did a submit just created and modified are stored :( On 11 ago, 18:54, francky06l <[EMAIL PROTECTED]> wrote: > What validations do you have in

Re: problem with validator cakephp 1.2

2007-08-11 Thread stefano
ted. > remove the call to die(); > > On Aug 11, 7:33 pm, stefano <[EMAIL PROTECTED]> wrote: > > > hello i have a litle problem with validation data in cakephp1.2 > > > i know that is a noob problem but i can't fix it > > > i have this con

problem with validator cakephp 1.2

2007-08-11 Thread stefano
hello i have a litle problem with validation data in cakephp1.2 i know that is a noob problem but i can't fix it i have this controller var $uses = array('User'); function index() { $ciudades = array(1=>"Concepción",2=>"Hualpen"); $this->set("ciudades",$ciudades);

Re: How to use the 'finderQuery' attribute of your model definitions.

2007-07-17 Thread stefano
Very informative post! thank you! Where can I find more info about that funny {$__cakeID__$} ? If I'm correctly understanding the whole picture, it shuold be useful to me very soon ;-) Stefano --~--~-~--~~~---~--~~ You received this message because yo

Re: Routing to an external application

2007-07-17 Thread stefano
e Apache's Rewrite Engine... but this works ;-) Stefano On 17 Lug, 11:21, Ita <[EMAIL PROTECTED]> wrote: > OK I solved the problem. > couldn't find how to do it via routes.php so I searched the net for an > hour and managed to do it via .htacess. > > For anyone wh

Re: soap server

2007-07-16 Thread stefano
Could someone put al that files in the "Code-Snippets" secition on the CAkeForge? Stef. On 16 Lug, 08:12, francky06l <[EMAIL PROTECTED]> wrote: > I have implemented it in my application, mail me I can send you the > files. > > On Jul 16, 5:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote:

Re: Best practice to handle a table shared by two models ?

2007-07-12 Thread stefano
uot; and "beforeSave" callback. I'm wondering if is really (and strictly) required to filter aot the fields not used in one of the models... I mean, in the worst case they are returned empty, and what to show in the view is your chioice... or am I missing something? Stefano On 11 L

Best practice to handle a table shared by two models ?

2007-07-11 Thread stefano
I have models Person and Company that share a large amount of fields so I'm thinking to use a single/shared table (named Contacts) to store the information and set both models to $useTable='contacts'. Obvioulsy in Contacts table I have a field type that can be 'person' or 'company' that I need to

Re: paginate & GROUP BY

2007-06-15 Thread stefano
Maybe the section "Complex find condition /using arrays)" in the manual can help you... see: http://manual.cakephp.org/chapter/models Unfortunately there's no anchor or permalink to that paragraph, you have to scroll down in "Models" chapter... Stefano kury ha scrit

Re: help with pagination PRG

2007-05-09 Thread stefano
thx On 9 mayo, 02:44, AD7six <[EMAIL PROTECTED]> wrote: > On 9 mayo, 03:39, stefano <[EMAIL PROTECTED]> wrote: > > > Hello > > > I try to do a search over apaginationcomponent i found > > thishttp://www.noswad.me.uk/Pagination/PRG > > > but i ca

help with pagination PRG

2007-05-08 Thread stefano
Hello I try to do a search over a pagination component i found this http://www.noswad.me.uk/Pagination/PRG but i can't download the source any one have this source or some like that ?? thz stefano s. --~--~-~--~~~---~--~~ You received this message be

Re: Hosting (i.e. Dreamhost)

2006-07-19 Thread stefano
I host a lot of websites on DreamHost and 2 of them are built on Cake... plus a lot of private projects... I'm very happy with them and never had even one problem with cake and dreamhost. As suggested, if you have problems with a server you can ask to be moved to a different one. Also keep an ey

Re: loading gif after ajax link

2006-07-18 Thread stefano
here!', '/controller/action/', $ajax_link_options, null,false)); note the 'loading' option in $ajax_link_options you can see the avaiable options in the API at http://api.cakephp.org/class_ajax_helper.html#e9b39f961e4c9fd0c8a09b41532b6125 stefano markiemark wrote: > Hi every one,

Re: Scaffolding??

2006-06-30 Thread stefano
Maybe in your browser you are requesting http://[yoursite]/user instead of http://[yoursite]/users (note the final 's'). Your controller have to be users_controllers.php and in it class UsersController extends AppController (note, as alvays the plural 'users' ) --~--~-~--~~--

Re: How to update multiple divs with one ajax call

2006-06-26 Thread stefano
Ok, obviously is something related to my Firefox and it's extensions... I'll keep you informed on my investigation... Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: How to update multiple divs with one ajax call

2006-06-23 Thread stefano
Nate, thank for the link. I tried it but it continues crashing my firefox, while it's running without problems in IE: 1. created an action test() in my orders controllers 2. created a view test.thtml with your example code in view/orders/ the view is rendered correctly but when I click on the "

Re: Can't caching view!

2006-06-20 Thread stefano
Lorenzo, sì! anche tu? --~--~-~--~~~---~--~~ Hai ricevuto questo messaggio in quanto sei iscritto al gruppo Gruppo "Cake PHP" di Google Gruppi. Per mandare un messaggio a questo gruppo, invia una mail a cake-php@googlegroups.com Per annullare l'iscrizione a qu

How to update multiple divs with one ajax call

2006-06-14 Thread stefano
I read some time ago a message from nate about this topic. I also tried it's example but the ajax link siply doesn't do anything. Someone get it working? Someone can give me some example on how I can achieve this result with CAke Thanks

Re: Can't caching view!

2006-06-14 Thread stefano
> 2) People MUST put in controller helper array "cache" ... If not cache > don't work You should post a ticket on this to have it in the manual, since I don't think it's there already Stef. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: beforeSave question

2006-06-09 Thread stefano
Thnk you, Nate There are 3 fileds on which the duplicate search is based, so if I understad correctly I have to invalidate all of 3. But they are also checked for validation like VALID_NOT_EMPTY, so I can't taylor the error message based on the specific failure, eg "this field can't be empty" vs

Re: ajax autocomplete.

2006-06-09 Thread stefano
Nooo... _SO_ easy!?!? You are a genius!!! Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

beforeSave question

2006-06-09 Thread stefano
This is my first attempt to use callback functions in cake so soory if is a dumb question... I'm using beforeSave() to check if an Order containing a defined set of data is already present in db. If it is already there then I would like to display a choice to the user between 'Keep adding this' o

Little notice error inACL upgrading from an old cake

2006-06-09 Thread stefano
oller\components\acl.php on line 57 I know that notice error are just informative and I have not difficult to turn it off but I would like to address the prob. Some hint? Thanks Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: ajax autocomplete.

2006-06-09 Thread stefano
Nate, how can I use it? How I heve to call it from my views? I have quite a few autocomplete fields and your component could help a lot! It's look like, for me, is the moment to learn about components... isn't it? ;-) Thanks! --~--~-~--~~~---~--~~ You received th

Re: enabling $recursive only in some models

2006-05-24 Thread stefano
You saved my day!! Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

enabling $recursive only in some models

2006-05-24 Thread stefano
Let's say that I have the following db schema: Model Order var $belongsTo = 'User'; var $hasMany = 'Donetask'; var $hasOne = 'Ordernote'; var $recursive = 2; Model User var $hasMany = 'Order,Donetask'; Model Donetask var $belongsTo = 'User,Task,Order'; (and m

Re: Using

2006-04-26 Thread stefano
Thank you!! I'll do this way... then in some future I'll switch to a db backed components so the site admins will can add users themselves Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Using

2006-04-20 Thread stefano
sed on the .ini file. So all the permissions checks I wrote rely on the users/groups shema tha came with My_acl. I don't want to re-write (and re-think) all that stuff: do you know of a component (maybe db based) that can handle the same schema? Many thanks in a