Re: How can i load a model method in view file in cakephp 3

2015-10-14 Thread Marcelo Andrade
On Wed, Oct 14, 2015 at 9:23 AM, Zahidur Rahman wrote: > Hi Guys, > How can i load a model method in view file in cakephp 3. CakePHP is a MVC framework. So you can't do this. Pass the model data to the view via controller. Regards. -- MARCELO F ANDRADE | Belem, Amazonia, Br

Cake Schema

2015-02-12 Thread Marcelo Aymone
Hi guys, Baked Schemas has no support on Cake 3? What are other options to do the same? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsub

Re: URL rewriting is not properly configured on your server

2015-01-14 Thread Marcelo F Andrade
> 'Internal Server Error'. Probably your host does not allow Apache dir based configuration. Ask your provider about it. Regards. -- MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://marceloandrade.info -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twi

BindModel on Instantiated model

2014-09-30 Thread Marcelo Aymone
i'm trying do that, but with no success... if someone can help me or just say if it is possible. class myModel extends AppModel { public function addmodel() { $Model= new Model(); $Model->bindModel(array( 'HasMany' => array( 'otherModel' )

Re: View Helper

2014-09-17 Thread Marcelo Aymone
Ok... there any way to load a helper throug a controller component? I cant modify the original controller... Em quarta-feira, 17 de setembro de 2014 18h24min27s UTC-3, Marcelo Aymone escreveu: > > On extending a Form helper, is a good practice inject input fields > automatic, w

View Helper

2014-09-17 Thread Marcelo Aymone
On extending a Form helper, is a good practice inject input fields automatic, with "echo" command? and... To automatic create some field types, like datepicker, and for example, datepicker uses bootstrap css and js. How insert that scripts through a helper? 'echo $this->Script' inside a helpe

Cake View files

2014-09-16 Thread Marcelo Aymone
Hi guys! Is there any way to set a different .ctp file to an action, through a component in cakephp 2.x? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakeP

Re: Missing Database Table, two models are joined and asking new table

2014-04-25 Thread Marcelo F Andrade
On Fri, Apr 25, 2014 at 3:25 AM, mdv wrote: > I have 2 models - Issue and Publication > But cakePHP is showing Error: Table issue_publications for model > IssuePublication was not found in datasource default Give us more details. How these two models are related? Regards. MARCELO

Re: can any body suggest me to create cms in cakephp from scratch

2014-04-25 Thread Marcelo F Andrade
. Start with the CakePHP blog tutorial. After finished, write us your next impressions and needs. http://book.cakephp.org/2.0/en/getting-started.html Regards. MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://about.me/mfandrade -- Like Us on FaceBook https://www.facebook.com/CakePHP Find u

Re: not loading js and css !!!

2013-09-10 Thread Marcelo F Andrade
broot folders Regards. MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://about.me/mfandrade -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP"

Re: Is make desktop application in cakephp

2013-08-21 Thread Marcelo F Andrade
On Tue, Aug 20, 2013 at 3:23 PM, Ankur Chauhan wrote: > Is make desktop application in cakephp? Years ago, I tried that using a tiny embedded webserver, Sqlite database and an interface with Mozilla Prism. Regards, MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://about.me/mfandr

Re: Cakephp blog tutorial, SQL error when INSERTING into posts.

2013-08-05 Thread Marcelo F Andrade
ck if this tip can help. http://markmcb.com/2011/11/07/replacing-ae%E2%80%9C-ae%E2%84%A2-aeoe-etc-with-utf-8-characters-in-ruby-on-rails/ Regards. MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://about.me/mfandrade -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter ht

Re: hasMany / belongsTo not working

2013-07-30 Thread Marcelo F Andrade
se directly with something like this (assuming the standard conventions) in your SGBD query prompt. SELECT p.* FROM photos p INNER JOIN albums a ON (p.album_id=a.id) Assuming you followed the standard conventions and just for a debugging purpose, try to simplify your associations and redo the tests. //

Cakephp 1.3 and Firebird - does anyone deploying with these?

2012-12-26 Thread Marcelo Santana
x27; => 'xx', 'database' => '/xxx/dealer.fdb', 'port'=> '3051', 'connect' => 'ibase_connect' ) thanks in advanced. marcelo -- Like Us on FaceBook https://www.facebook.

Re: Cakephp 1.3 and Firebird

2012-12-26 Thread Marcelo Santana
hi, does you have been sucess with cakephp 1.3 and firebird? i'm using the datasource fro github, but i'm having a notice *Notice* (8): Undefined index: tglclient [*APP/plugins/datasources/models/datasources/dbo/dbo_firebird.php*, line *513*] where "tglclient" is the name of my model so, you g

Re: CakePHP in Production throws odd error when inside a folder

2012-12-12 Thread Marcelo F Andrade
ewrite fully installed. This is also a fresh install of cakephp, right out of the zip file. Thanks in advance!! Check the permissions/ownership of this and related folders. Also look he Apache logs forany tips. Cheers. MARCELO DE FREITAS ANDRADE "Minha alma é major do que eu." -- Like U

Re: language problem in database cake1.3

2012-12-12 Thread Marcelo F Andrade
2/2012 23:59, "Chris" escreveu: > > the problem is solved,... Please, share with us how did you fix it. MARCELO DE FREITAS ANDRADE "Minha alma é maior do que eu." -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP -

Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Marcelo F Andrade
tely exists, I have tried the tutorial twice now so must have something wrong. Are you sure about the CakePHP version? Double check the name of your posts_controller or PostsController file. If you're in doubt, try to generate this file with cake bake. Cheers. MARCELO DE FREITAS ANDRAD

Re: can anyone help me how to print the data in new window with the controller action.

2012-11-28 Thread Marcelo F Andrade
with JavaScript code like window.opener.print(). Cheers. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subsc

Re: find and display groups by higher ranking

2012-11-22 Thread Marcelo F Andrade
x27;, array('order' => 'Group.rank')) Always check the documented API: http://api.cakephp.org/class/model#method-Modelfind Regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Paginator + postConditions

2012-09-03 Thread Marcelo Nunes
Boa Noite Pessoal, Configurei o Paginator em uma página do meu site, com alguns filtros de seleção, onde o postConditions faz o tratamento. Até aí tudo bem, o paginator funciona normalmente, bem como os filtros. O meu problema é quando eu mudo para outra página, apesar dos filtros continuarem

Charts - Anyone knows a good valid one?

2012-07-17 Thread Marcelo Santana
Hello, all, i'm needing display some charts i tried: http://bakery.cakephp.org/articles/ixu38/2010/04/30/googlechart-api-helper show the charts but i can't configure the way i want, the line chart is terrible (or someone who use it successfully can show how... ) https://github.com/cjsaylor/Go

Re: CMS with cakephp

2012-07-03 Thread Marcelo Custódio
Well, in a certain way, I foresaw that answer. Thanks. The remaing question: are they as easy to use as WP ? Thanks again Abraços, MARCELO CUSTÓDIO On Tue, Jul 3, 2012 at 5:35 PM, lowpass wrote: > Wordpress isn't CakePHP, which can be handy if the site requires more > than

Re: CMS with cakephp

2012-07-03 Thread Marcelo Custódio
So what are the advantages of Croogo and QuickAppsCMS over Wordpress, an easy-to-use and very popular CMS ? Abraços, MARCELO CUSTÓDIO On Tue, Jul 3, 2012 at 5:29 AM, Mohammad Naghavi wrote: > I wanted once to start working on a MODULE that can replace the static > pages but not mor

Re: CakePHP based on relational databases

2012-07-02 Thread Marcelo Custódio
Thanks again ! Why not any OO DB ? Any plans for it ? Abraços, MARCELO CUSTÓDIO On Mon, Jul 2, 2012 at 2:02 AM, Madhan madz wrote: > Hi, > > Cakephp isn't only based on relational db. It can also support mongoDB > which isn't relational. Search for MongoDB and cak

CakePHP based on relational databases

2012-07-01 Thread Marcelo Custódio
Hi there, You guys have been awesome answering my questions even in the weekend! Is CakePHP based *only* on relational databases? If so, when they're no longer the *de facto* standard, is CakePHP going to be deprecated ? Thanks a lot ! Abraços, MARCELO CUSTÓDIO -- Our n

$this->Post = ClassRegistry::init('Post');

2012-06-30 Thread Marcelo Custódio
Suppose I have the classic Post model and I've created an Author model too. I have some basic questions: (1) The Post object is automatically created whithin the PostsController ? (2) In order to create an instance of Post whithin AuthorsController, is the only way with $this->Post = ClassRegi

Why using HTML->link instead of manually writing an anchor text ?

2012-06-30 Thread Marcelo Custódio
Isn't it much slower concerning development time ? What are the advantages of of HTML->link ? Thanks ! -- 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 with their CakePHP relate

Re: Trying to get phpFlickr working as a Vendor

2010-09-16 Thread Marcelo Siqueira
> 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 email to > cake-php+un

Re: When Testing controllers, what should I be testing?

2010-08-30 Thread Marcelo F Andrade
set to the view (my choice) or even the HTML code rendered. http://book.cakephp.org/view/1210/Testing-controllers#The-testAction-method-1212 -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with th

Re: save() omitted

2010-07-17 Thread Marcelo F Andrade
on > your data isn't saving, be sure to check to see if some validation rules > aren't being broken." > > Thanks for the help. That's extremely common. Nice suggest. Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check

Re: Internationalizing the Application

2010-06-22 Thread Marcelo F Andrade
with gettext functions (for now I mean, use __('My message') instead of 'My message'), save a .po file in the proper local and set you default language in the Config.language configuration entry. Cake can generate .po files for you when you run: cake i18n extract Best regards.

Re: Format date with span classes

2010-06-17 Thread Marcelo F Andrade
On Thu, Jun 17, 2010 at 4:56 AM, jnjn wrote: > > Hello, > > On my cake blog i output dates on my posts with this line: > > > > outputs: > 19March,2010 > > How can i output this: > 19 > March > 2010 This way? Best regards. -- MARCELO F ANDRADE Bel

Re: Problem with form creation after upgrade to 1.2.7

2010-06-17 Thread Marcelo F Andrade
autare_produse_vechis/cautareProduseVechi"> > > The old 1.2.0 was generating : > A tip: don't bother with that. Let Cake abstract this for you. If you really really want, you can set attribs for your form. create('CautareProduseVechi',array('action'=

Re: Email component

2010-06-17 Thread Marcelo F Andrade
ut maybe you should try this: !defined('EMAIL') && define('EMAIL', 'exam...@domain.com'); Or even define constants in your bootstrap.php. Atts. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions si

Re: How i can increase session time in cakephp,

2010-06-14 Thread Marcelo F Andrade
On Mon, Jun 14, 2010 at 8:15 AM, arif hossen wrote: > Dear Experts, > How i can increase session time in cakephp, You can change Security.level in app/config/core.php and there is a Session.timeout entry too. Atts. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill&

Re: User errors and fat model, skinny controller

2010-06-05 Thread Marcelo F Andrade
ven throw exceptions for each expected situation in your case. Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message be

Re: Strange form helper output I can't understand: divs after input

2010-06-05 Thread Marcelo F Andrade
iv> I'm not sure, but I think this additional div is used for validation messages. You can omit it this way echo $form->input('name', array('div' => false)); Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Chec

Re: how to select from subquery result

2010-05-21 Thread Marcelo Andrade
only way to do this? Check the sub-query item at http://book.cakephp.org/view/74/Complex-Find-Conditions Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: HOW to use find() to EXCLUDE some datasets?

2010-05-01 Thread Marcelo Andrade
On Mon, Apr 19, 2010 at 3:42 AM, mivogt-LU wrote: > > I want to use find() to exlude some data on a few conditions. > > [cut /] Containable behavior? Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions

Re: pass data from view to controller using ajax

2010-04-28 Thread Marcelo Andrade
On Tue, Apr 27, 2010 at 8:57 AM, MANOJ DHAMAL wrote: > How to pass data two or more fields from view to controller by usin > ajax in cakephp ? Serialize. ... , 'with'=> 'Form.serializeElements(new Array($("MyField1"), $("MyField2"

Re: cakephp-1.3.0 RC3, issue with scaffolding

2010-04-10 Thread Marcelo Andrade
On Wed, Apr 7, 2010 at 11:44 PM, Maverick at work wrote: > author ==> book > Book Model ==> var $belongsTo = "Author"; > I m not able to see the author list while creating a new Book Author hasMany Book? -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took th

Re: Blank page when CakePHP is uploaded to the server

2010-04-07 Thread Marcelo Andrade
I did not follow the entire thread, but I had this kind of problem before and I solved it uploading all the files setting the "binary mode" file transfer in my ftp client. Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new Ca

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-16 Thread Marcelo Andrade
On Sun, Mar 14, 2010 at 8:38 PM, anak newbie wrote: > Yeap, you're right! > > but somehow open_short_tag affect in making template more clean > > i see it's support on another framework and i don't talk about comparing > something :D > > Just an idea The problem is not only the 6 more chars, but

expiration date page (was- Fwd: Hello Sir)

2010-02-08 Thread Marcelo Andrade
Can u guide me..Do I have to make use of session--put ---get?? Do u have any examples that I can go through...Thank u in advance...have a nice day Looking forward to ur reply... Sincerely, Sai -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new Ca

Re: Table name problem

2010-02-01 Thread Marcelo Andrade
On Mon, Feb 1, 2010 at 3:43 PM, joe-electro wrote: > (..) How do I tell > Cake that this field points to the primary key of this table and not > of a table called "Parent_Categories"? http://book.cakephp.org/view/851/Multiple-relations-to-the-same-model Best regards. --

Re: Cake is NOT able to connect to the database.

2010-02-01 Thread Marcelo Andrade
-a-question Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" 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 "Cak

Re: Release: CakePHP 1.2.6

2010-01-29 Thread Marcelo Andrade
On Sat, Jan 30, 2010 at 12:50 AM, mark_story wrote: > (..) Good job Mark and all of CakePHP Team! Keep baking! -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP rela

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

2010-01-28 Thread Marcelo Andrade
On Wed, Jan 27, 2010 at 9:34 PM, Miles J wrote: > Yes .htaccess is required because its uses mod_rewrite. If you didn't > your URLs would be like so: > > index.php?url=/items/view/ If you uncomment App.baseUrl in core, you can get URLs like index.php/items/view/. Atts. --

Re: Thoughs about naming conflict between model and component

2010-01-27 Thread Marcelo Andrade
On Mon, Jan 25, 2010 at 10:50 AM, Chad Smith wrote: > (..) I'm not 100% sure and cannot try for now, but doesn't this work? 'Email'); var $components = array('EmailComponent'=> 'Email'); var $helpers = array('MyForm'=> &#

using an image in the button with ajax->submit

2010-01-06 Thread Marcelo Andrade
Hi there, Is it possible to generate a submit button with an image inside using an $ajax->submit? Or just using a plain button with an $ajax->remoteFunction attached? Atts. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Que

Re: Can CakePHP run in a user account?

2010-01-05 Thread Marcelo Andrade
On Tue, Jan 5, 2010 at 5:59 PM, Fred Riley wrote: > (..) > I can't be the first person to have come across this issue. Is there > not a FAQ somewhere? Just include the directive RewriteBase /~theusername at the beginning of your .htaccess files. Best regards. -- MARCELO F

Re: convention clarifications, and joins with cakephp

2009-12-28 Thread Marcelo Andrade
Mail.mail_id') )); As your User and Mail models are properly associated, you don't have to complain about the join. The find method abstracts it for you. Your $results will be likely array( [0] => array( [User] => array( [user_id] = 321321 ) [Mail] =>

Re: cake book offline pdf version!!

2009-12-21 Thread Marcelo Andrade
e CC license says "You are free: * to Share — to copy, distribute and transmit the work" Best regards. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Re: 3 Days and not 1 person has any idea?

2009-12-21 Thread Marcelo Andrade
On Sun, Dec 20, 2009 at 9:41 PM, Dave wrote: > (..) http://book.cakephp.org/view/770/How-to-ask-a-question -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related qu

Re: Newb? Console wants full path for app name-Need answer tonight please ;)

2009-12-16 Thread Marcelo Andrade
7;s no such 'newproject' folder. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 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 t

Re: Newb? Console wants full path for app name-Need answer tonight please ;)

2009-12-15 Thread Marcelo Andrade
top, etc...? You must just inform the full path for your "app"' folder. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://tasafo.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Create .ctp file

2009-12-10 Thread Marcelo Andrade
st open notepad, gedit, kate or other plain text editor, create html content and save the file with .ctp extension. > > I have not find nothing about that!! Ahn... have you tryied the CakePHP cookbook? http://book.cakephp.org/view/26/View-Conventions Best regards. -- MARCELO DE F. ANDRADE B

Re: Is Cake Certification still offered?

2009-12-09 Thread Marcelo Andrade
Ive never even heard of a cake certification, care to tell? Or sources >> of where you heard about it? > > http://cakefoundation.org/pages/certification Very interesting! I'd like to know more about too. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 Che

Re: Internationalization in Cakephp help( for a newbie)

2009-12-09 Thread Marcelo Andrade
rg/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial [2] http://book.cakephp.org/view/162/Internationalizing-Your-Application -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help others wi

Re: Use of Multiple Fields in $displayField var in Models

2009-12-07 Thread Marcelo Andrade
be you should give it a try. [1] https://trac.cakephp.org/ticket/644 [2] http://bakery.cakephp.org/articles/view/multiple-display-field-3 Atenciosamente. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help oth

Re: containable find not ordering

2009-12-07 Thread Marcelo Andrade
On Sun, Dec 6, 2009 at 12:09 AM, j0n4s.h4rtm...@googlemail.com wrote: > try to place the order in the outside array parts like this > http://github.com/ionas/sna/blob/master/www/app/controllers/messages_controller.php#L66 Thanks a lot, j0n4as! Best regards. -- MARCELO DE F. ANDRADE Bel

containable find not ordering

2009-12-05 Thread Marcelo Andrade
to.descricao' ) )); // ... $results= $this->Pagamento->find('all', array('conditions'=> array(...))); The results are supposed to be ordered by the specified fields, but they are not ordered at all. Any tips? Best regards. -- MARCELO DE F. ANDRA

Re: download API documentation and book

2009-12-04 Thread Marcelo Andrade
b18ba403?lnk=gst&q=offline+book Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 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 G

Re: Here is my database schema,please peovide me model for his.

2009-12-04 Thread Marcelo Andrade
n_key for associations are your friends. http://book.cakephp.org/view/71/Model-Attributes Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You re

Re: commands out of sync error

2009-12-02 Thread Marcelo Andrade
ry neither it was clear for me what CakePHP has to do in that case. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this messag

Re: trying to Implement ajax stream of new blog post every 5 seconds

2009-12-02 Thread Marcelo Andrade
/627/remoteTimer [2] http://book.cakephp.org/view/208/AJAX Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 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

Re: need a little help with model::saveAll function

2009-11-23 Thread Marcelo Andrade
;ll have to loop $this->data and unset the entries when you get blank fields. > B - is it pobbile to create a behavior that forces "validate" => > "first" to every saveAll call? You can override the saveAll method in your AppModel, changing the validate entry i

Re: alphaNumeric not allowing valid entry (1.2.5)

2009-11-23 Thread Marcelo Andrade
e a field value containing spaces, blanks, new lines, and so on. Just letters and numbers. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 -- You received this message because you are subscribed to the Google Groups "CakePHP" group

Re: addons.mozilla.org soon will leave CakePHP..

2009-11-18 Thread Marcelo Andrade
lection of > components, rather than a coherent framework). > > Why should CakePHP die? > It can't. :) jacmoe, I agree entirely with you in all things you said! :-) -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 -- You received this message because you are su

Re: addons.mozilla.org soon will leave CakePHP..

2009-11-18 Thread Marcelo Andrade
On Wed, Nov 18, 2009 at 11:22 AM, keymaster wrote: > (..) > A new flagship app for cakePHP will soon appear (no doubt leaving some > other framework for us) to replace addons.mozilla.org as cakePHP's > claim to fame. What's the status for Mambo 5 CMS? -- MARCELO D

Re: To Sanitize or not? :: Public Opinion

2009-11-17 Thread Marcelo Andrade
data before > saving. I think you said all. Never trust data from the user. I vote for always sanitize. You never know when you'll face a "Bobby Tables" user. http://xkcd.com/327/ Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 -- You

Re: Displaying data from unrelated models

2009-11-13 Thread Marcelo Andrade
On Fri, Nov 13, 2009 at 3:06 PM, Scott Dahl wrote: > $this->loadModel('ModelName'); > $results = $this->ModelName->find('list'); "loadModel" is deprecated. Use App::import('model', 'ModelName'); instead. Best regards. -- MAR

Re: Delete confirm

2009-11-13 Thread Marcelo Andrade
o hard to do it with ordinary $html->link. Point the delete link to a question action that do what you want (a link to the real delete action and another to go back). If you can realize how to do it this way, so you could encapsulate the all stuff creating your own helper, overriding the $html-&g

Re: Where should this code go?

2009-11-13 Thread Marcelo Andrade
est regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email

Re: Where should this code go?

2009-11-13 Thread Marcelo Andrade
ch appreciated. I think if it outputs html code, it should be in a helper. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Marcelo Andrade
; CakePHP Questions is a multilingual site and if you are interested in > helping us translate the static content of the site please contact us: > cak...@cakephp.org That's great But why it's not in a subdomain of cakephp.org? Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amaz

Re: null value from date field.

2009-11-11 Thread Marcelo Andrade
ost title is not null: array ("not" => array ( "Post.title" => null ) ) ''' Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 -- You received this message because you are subscribed to the Google Grou

Re: javascript alert after auth login

2009-11-10 Thread Marcelo Andrade
On Mon, Nov 9, 2009 at 10:29 PM, O.J. Tibi wrote: > > Hi Marcelo, > > Since you were saying "Javascript alert box", I guess this wouldn't be > a CakePHP specific question. > > Anyway, let me answer (using jQuery, of course) > > 1.) Set aside a div (or any

javascript alert after auth login

2009-11-08 Thread Marcelo Andrade
Hi there, Maybe it's a newbie question, but what's the proper way to show a javascript alert after a successfull auth login? Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You received th

Re: using javascript within $ajax->remoteFunction

2009-11-07 Thread Marcelo Andrade
ere should be a "correct" way of doing this. > > Does anybody know if there is? > > Thanks in advance! With the corresponding view to the remote function call set a variable in a hidden field. And then, in the "oncomplete" attribute, use something like Form.Element.s

Re: cakephp application hosting problem....

2009-11-07 Thread Marcelo Andrade
You said. Your .htaccess files are not uploading. Maybe you should try use CakePHP without mod_rewrite. Uncomment the App.baseUrl configuration key in your app/config/core.php file. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia

updating trac tickets / dbo_sqlite3

2009-11-02 Thread Marcelo Andrade
19 Hope it could be useful. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: MySql to PDF export

2009-10-30 Thread Marcelo Andrade
On Fri, Oct 30, 2009 at 5:06 PM, rajinder wrote: > > HI, can anyone help me > > I want to export data from mysql to pdf file after clicking on a link > (export to pdf) http://bakery.cakephp.org/articles/view/creating-pdf-files-with-cakephp-and-tcpdf -- MARCEL

Re: What the heck? CakePHP is dead?

2009-10-27 Thread Marcelo Andrade
On Wed, Oct 28, 2009 at 12:07 AM, Dave wrote: > > If you go to http://cakephp.org/ the site is unavailable. Happy halloween! :-D http://cakephp.org -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You receive

Re: Fat models - design question, where to put logic?

2009-10-27 Thread Marcelo Andrade
this better to code: > Category::getRoot($shop_id) > or > Shop::getRootCategory($id) Maybe not exactly a rule of thumb, but a good design tip is if f your method must return "categories", it should be in the "Category" model. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Ama

Re: Problem to select right value on $form->input (select) with text index

2009-10-17 Thread Marcelo Andrade
t int the camelBack format, but underscored. $clientes = $this->Cliente->find('list', array('order' => array('Cliente.razao_social ASC'))); Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~-

Re: Selecting empty rows?

2009-10-17 Thread Marcelo Andrade
7;=>''))); produces a WHERE > `Document`.`title` = NULL query and that's not right. > > What I need is a WHERE title='' query returned. 'conditions'=> array('Documen.title'=> null) doesn't work? -- MARCELO DE F. ANDRADE Bel

Re: Submitting form data to a preview page before adding to database

2009-10-14 Thread Marcelo Andrade
proach for this? (..) Another way to do this could be, in your action, just save the form values (in a session), redirect to the view page that have the same fields as hidden values. So the submit/confirm action saves the data and a cancel/edit get back to the first action. Best regards. -

Re: jquery substitute for ajax->observeField

2009-10-14 Thread Marcelo Andrade
;m not wrong, there's some user-made versions of ajax-helper to Cake1.2 that resembles the prototype to jquery. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You received this message because you ar

Re: validate - unique - error message

2009-10-11 Thread Marcelo Andrade
put > echo $html->tagErrorMsg('User/unique_username', 'Enter another > username, this is already used.'); > into my view but this gives me the error message > "Method HtmlHelper::tagErrorMsg does not exist" > > What do I need to do? Check the C

Re: fopen: failed to open stream

2009-10-07 Thread Marcelo Andrade
same error. Thanks for your help You have to change the permissions to the app/tmp and app/tmp/cache folders. They need to be writable by the user that runs the webserver. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~--

Re: How pass select.getValue() for ajax

2009-10-06 Thread Marcelo Andrade
;input('Model.field', array('type'=> 'select', 'options'=> $options)); ... echo $ajax->observeField('ModelField', array( 'url'=> '/your/action' , 'update'=> 'idyourelement' , ... )); W

Re: Cake Bake Error: I just cant BAKE, please help

2009-10-06 Thread Marcelo Andrade
is because I'm STUCK! Strange error. Have you created the app/config/database.php file and configured it properly? Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You received this message because you are su

Re: AJAX layout again

2009-10-05 Thread Marcelo Andrade
that case, you don't need to set the ajax layout in your action as you're using RequestHandler component that does this automatically to you. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You

10.2 Simple Acl controlled Application tutorial problem

2009-10-01 Thread Marcelo
Hi everyone, I'm doing the cakephp.org acl tutorial and I'm stuck in the section 10.2.6 An Automated tool for creating ACOs link:http:// book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs there is a function that suppose to add acos based on the controllers or something like that, wh

Re: A Query from CakePHP Beginner

2009-09-30 Thread Marcelo Andrade
arn > and code... Huh... What's the difference? Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: interlinked selects

2009-09-29 Thread Marcelo Andrade
ete-auswahllisten/beispiel1.htm > ) > > Is there a simple way of doing this with CakePHP? Sure. I hope it helps: http://tinyurl.com/ycl5aey And know more about the Cake's Ajax helper. http://book.cakephp.org/view/208/AJAX Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazi

Re: Display Error

2009-09-29 Thread Marcelo Andrade
it from the field so it only displays in > the spot i want? $form->input make an internal call to $form->error by default. As John said, if you're using $form->input, you must to set "'error'=> false" in the options. Best regards. -- MARCELO

Re: input text box instead of dropdown list

2009-09-29 Thread Marcelo Andrade
On Tue, Sep 29, 2009 at 1:58 AM, Jiru wrote: > > hii , > > In my project the names are displayed in dropdown list. bt i need it > in input text box with ajax autocomplete code. http://book.cakephp.org/view/632/autoComplete -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Lin

  1   2   3   4   >