Re: Editor for Cakephp

2015-06-16 Thread Mario Dourado
it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Mario Dourado http://zero

Re: How to connect to a postgres database with CakePHP?

2014-01-15 Thread Mario Dourado
p@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/groups/opt_out. > -- Mario Dourado http://zero7.org -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/

Re: Hidden fields in IE (cakePHP: 2.3.2)

2013-04-30 Thread Mario Rico
> > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 30 Apr 2013, at 11:20:59, Mario Rico > > wrote: > > I'm having a problems with Internet explorer and hidden fields. it isn't > hide them. > > IE 10 or older > cakePHP: 2.3.2 > >

Hidden fields in IE (cakePHP: 2.3.2)

2013-04-30 Thread Mario Rico
I'm having a problems with Internet explorer and hidden fields. it isn't hide them. IE 10 or older cakePHP: 2.3.2 use: echo $this->Form->input('category', array('type' => 'text', 'value' => $category, 'hidden' => true, 'label' => false)); source generated: can you help me? thank you --

only runs default index with a subdomain

2012-12-19 Thread Mario Rico
env('SCRIPT_NAME'));" in core file. and with a subdomain it is running. now I am using subdomain "http://mario.homesonsale.es/"; pointing to a directory called "mario" and it works fine (with www.homesonsale.es/mario makes a controller error). but if I want

Set-Cookie header issue 2.0.6 vs 2.1.1

2012-04-03 Thread Mario
-Cookie remains. Any suggestion or idea where to focus to find a solution? Thank you in advance, Mario -- 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 related

Re: 2.1 issue with 'joins' where table is a SELECT

2012-04-01 Thread Mario
Excellent, thank you very much for pointing the right direction. On Apr 2, 12:11 am, stork wrote: > ...and watch > tickethttp://cakephp.lighthouseapp.com/projects/42648/tickets/2709-modelsch... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

2.1 issue with 'joins' where table is a SELECT

2012-04-01 Thread Mario
I have an issue with the new 2.1.1 version compared to 2.0.6 In several places in my models I have queries like: $this->find('all', array( 'joins' => array( array( 'type' => 'LEFT', 'table' => '(SELECT example.id FROM ... I know that table should contain "th

Re: Routing to /img a request to /app/img

2012-01-03 Thread Mario
$file, 'download' => false, 'extension' => $this->request->params['ext'], 'path' => 'img'.DS ); $this->set($params); } } ?> Thank you again. Best, Mario On Jan 3, 6:52 am, AD7six wrote: > If yo

Re: Routing to /img a request to /app/img

2012-01-02 Thread Mario
Ty for the answer. Fixed everywhere, but unfortunately is not an option for an already shipped mobile app client... Of course future versions will take care of the issue, but I would like to solve it server side also for the existing ones. Best, Mario On Jan 2, 8:31 pm, euromark wrote: >

Routing to /img a request to /app/img

2012-01-02 Thread Mario
getting an "Error: [MissingActionException] Action AppController::attachments() could not be found". How can I achieve that? I would really appreciate if anyone could point me to the right direction. Best, Mario -- Our newest site for the community: CakePHP Video Tutorials http://tv.c

Re: HTTPS and HTTP on same app

2011-12-19 Thread Mario
Just solved, as suggested by some nice guys on #cakephp on irc.freenode.net, it was a matter of setting the DocumentRoot as indicated in http://book.cakephp.org/2.0/en/installation.html#production, that is at /cake_install/app/webroot. On Dec 19, 7:11 pm, Mario wrote: > Hi all, > > I

HTTPS and HTTP on same app

2011-12-19 Thread Mario
Hi all, I have just added to a fully working site based on CakePHP 2.0 and Apache 2.2.16 a wildcard SSL certificate. Created virtual hosts pointing HTTPS to the same HTTP app. But when I load the HTTPS version, the certificate is ok but lots of errors: first thing [Mon Dec 19 16:34:57 2011] [erro

Strange caching

2011-05-17 Thread Mario Kastner
Hi, @first: Please excuse my bad english - i hope you will understand what i mean I have a Model called Newsletter. There is a field called "state" (it marks the state of an sending) ... Since a few days the update query works (the database show the updated value) but cake render out an empty arr

Re: Interfacing with Android app (and/or iPhone)

2010-07-28 Thread Mario
nderstood. You are suggesting to serve from Cake HTML pages (probably styled or created on purpose) that can be browsed by the Android app? Best, Mario Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message b

Interfacing with Android app (and/or iPhone)

2010-07-27 Thread Mario
uld really appreciate any help or link to related topics. Thank you in advance. Best, Mario 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&

pagination for custom query

2010-06-17 Thread Mario Simaremare
dear all, i just learn the cake in a week. and i start to get confused with how to paginate a custom query. if i have a more complex table: users: id, group_id, name, password groups: id, name roles: id, name group_roles id, role_id, group_id then i have a query: "SELECT users.name FROM users

[ask] : reuseable view

2010-06-15 Thread Mario Simaremare
dear all, i am very new with php and the cake. i used to play with java actually. i would ask you, if there is a way in the cake to create a single view file to view, add, and edit then reuse them. i mean to use the same view with different models. the views automatically detects the table columns

Paginate: sorting JOINed data columns

2010-02-20 Thread Mario
re (so the view is shown but not ordered). But both `Y`.`banana_weight` and `Z`.`apple_name` are existing fields in the query results and in the array returned by Cake. What I can certainly see is that Z is not a defined model, but still I would have expected this to work. Any idea or workaround? Thank

Issue with timeAgoInWords() method

2009-12-23 Thread Mario
fset seems to be applied, I would have expected a 1 hour difference in between the two outputs. Any hint or suggestion? Best, Mario 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 subs

Re: How can I get the current session?

2009-12-03 Thread Mario
. Regarding substituting IPs with sessions, my previous reply to Dave might contain a possible solution. Best, Mario On 3 Dic, 03:29, nurvzy wrote: > Hi Mario, > >   I've repackaged my little who's online utility as a plugin.  It > works well enough for my purposes basing off

Re: How can I get the current session?

2009-12-03 Thread Mario
f it is not an issue, if there is any method in CakePHP Session to get the same. Best, Mario On 3 Dic, 01:11, Dave wrote: > You can use the session id as the key as well if you prefer > > You just need to be sure to change the Security.level value in your core.php > to at most med

Re: How can I get the current session?

2009-12-02 Thread Mario
7;REMOTE_ADDR'] (IPs aren't prone to duplicates, two or more users behind the same firewall?), where CakePHP automatically writes a 'CAKEPHP' (session, I think) cookie? I mean, a part from not being to access to its value, just like me :-) ... Best, Mario On 2 Dic, 05:10, nurvz

Re: How can I get the current session?

2009-12-02 Thread Mario
7;REMOTE_ADDR'] (IPs aren't prone to duplicates, two or more users behind the same firewall?), where CakePHP automatically writes a 'CAKEPHP' (session, I think) cookie? I mean, a part from not being to access to its value, just like me :-) ... Best, Mario On 2 Dic, 05:10, nurvz

How can I get the current session?

2009-12-01 Thread Mario
x27;)) [where in my config/core.php I have Configure::write('Session.cookie', 'CAKEPHP');] But it doesn't work, I get nothing. Any hint or alternative method I could implement? Thank you in advance. Best, Mario Check out the new CakePHP Questions site http://cakeqs.org an

Re: paginate loosing args

2009-11-24 Thread Mario Cesar
*I tried too * On Tue, Nov 24, 2009 at 6:36 PM, Ma'moon wrote: > If you are using POST to send the ID of the target article then try sending > it using GET > > On Tue, Nov 24, 2009 at 3:31 PM, Mario Cesar wrote: > >> i tried but didn't work >> >>

Re: paginate loosing args

2009-11-24 Thread Mario Cesar
i tried but didn't work On Tue, Nov 24, 2009 at 6:20 PM, Dave wrote: > in the paginate array in your view file add > > 'url'=>$this->passedArgs > > On Tue, Nov 24, 2009 at 1:24 PM, Mario Cesar wrote: > >> Hi All!! >> >> I have a probl

paginate loosing args

2009-11-24 Thread Mario Cesar
Hi All!! I have a problem with paginate, I'll try explicate: I have a form that method is "post" the result is ok in first page but if I click in other page or some order the paginate returns all rows of my table he is loosing the args and I'm using the passedArgs in View page what can i do? C

Re: Associating model aliases

2009-09-30 Thread Mario
to me the more efficient solution, everything with the same query with 2 additional LEFT JOINs. I look forward to your comments. Best, Mario On Sep 30, 2:17 am, brian wrote: > On Tue, Sep 29, 2009 at 5:21 PM, Mario wrote: > > > But to me the BIG question is: > > isn't

Re: Associating model aliases

2009-09-29 Thread Mario
d and frequent. I wonder if, for example, if (in this specific case) declaring the Sender and Receiver models, therefore having the model/sender.php and model/receiver.php files, could be a possible solution to be explored. I look forward to your comments.

Re: Associating model aliases

2009-09-29 Thread Mario
;), 'joins' => array(...) ) ); So we have a workaround, thank you Brian! On Sep 29, 8:40 pm, Mario wrote: > > The problem is that in place of '*' I get all the Message, Sender and > Recipient fields but not the SenderProfile and RecipientProfi

Re: Associating model aliases

2009-09-29 Thread Mario
r_id` = `Sender`.`id`) LEFT JOIN `users` AS `Recipient` ON (`Message`.`recipient_id` = `Recipient`.`id`) WHERE 1 = 1 The problem is that in place of '*' I get all the Message, Sender and Recipient fields but not the SenderProfile and RecipientProfile ones (even if I can test with PHPMyAdmin that

Re: Associating model aliases

2009-09-29 Thread Mario
d` = `Recipient`.`id`) WHERE 1 = 1 the above mentioned fields are no longer NULL, it seems that the query is working. I just changed (almost impossible to detect...): 'SenderProfile.user_id' into `SenderProfile`.`user_id` 'RecipientProfile.user_id' into `RecipientProfile`.`user_id`

Re: Associating model aliases

2009-09-29 Thread Mario
`Sender` ON (`Message`.`user_id` = `Sender`.`id`) LEFT JOIN `users` AS `Recipient` ON (`Message`.`recipient_id` = `Recipient`.`id`) WHERE 1 = 1 Best, Mario On Sep 29, 1:55 pm, John Andersen wrote: > Thanks, a little more information is needed! > Please show the code from the controller,

Re: Associating model aliases

2009-09-29 Thread Mario
7; => array( 'className' => 'Message', 'foreignKey' => 'recipient_id' ) ); var $hasOne = 'Profile'; // this for the Profile association } ?> Best, Mario On Sep 29, 12:35 pm, John Andersen wrote: &g

Associating model aliases

2009-09-29 Thread Mario
re important in this case to declare that the Sender (Recipient) 'hasOne' Profile. But where and how, not having a Sender (Recipient) model? Thank you in advance, Mario --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: cakephp and facebook

2009-08-01 Thread mario vallejo
Ok, so what kind of help would you need? I'll be happy to give you a hand On Mon, Jul 27, 2009 at 12:25 AM, Dhileepen Chakravarthy < dhileepen.cake...@gmail.com> wrote: > Please help me anyone for cakephp with facebook implementation > > > > > --~--~-~--~~~---~--~

Re: $_POST

2009-07-17 Thread mario vallejo
>> I think you may find that FB sends the fb_sig varibales in $_GET. Just >> to test it, in your controller method: >> echo ''; >> print_r($_REQUEST); // or print_r($_GET); >> echo ''; >> exit; >> >> >> On Jul 16, 9:5

Re: $_POST

2009-07-16 Thread mario vallejo
gt; say the function name is mario then, > function mario() > { >if(!empty($this->data)){ > $mariodata=$this->data; >$this->set('yourdata',$mariodata); > } > }, > Now in your mario.ctp file,which is the view file of this action >

$_POST

2009-07-15 Thread mario vallejo
require_login(); And that's really the only thing left in order to finish my app. I have got no clue on how to access 'normal' $_POST data inside of cake. Thank you very much and I really appreciate this. Mario R. Vallejo --~--~-~--~~~---~--~~ You r

Re: parameters with /

2009-01-15 Thread Mario Cesar
ity:paris/ > account:active > > to see the params in your controller pr($this->params) > > p.s. It is almost always a bad idea to use requestAction() ;) > > > On Jan 14, 9:55 am, Mario Cesar wrote: > > hi! > > i have parameters with / ex '2008/2,' '

Re: passing parameters with /

2009-01-14 Thread Mario Cesar
tks all for tips!!! On Wed, Jan 14, 2009 at 3:30 PM, Marcelo Andrade wrote: > On Wed, Jan 14, 2009 at 9:00 AM, Mario Cesar wrote: > > > > hi!! > > I need pass paramters like 2008/1 2008/2 > > but the cake only read 2008 > > how can I pass parameters like

parameters with /

2009-01-14 Thread Mario Cesar
hi! i have parameters with / ex '2008/2,' '2008/1' but the cake read only 2008 how can i pass the /??? i'm using $turma = 'qqq/w'; $this->requestAction("/turmasDisciplinasHorarios/getDisciplinaTurma/ $turma/$filial/$disciplina"); someone can help me? --~--~-~--~~~---

passing parameters with /

2009-01-14 Thread Mario Cesar
hi!! I need pass paramters like 2008/1 2008/2 but the cake only read 2008 how can I pass parameters like that? tks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to

Set:extract retaining the original id

2008-12-07 Thread mario
=> 4 instead of what I want which is: [1] => 3 [2] => 2 [3] => 4 Please help. I really need the original ids for parsing purposes. Thanks, Mario --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: cannot add onclick event on form input with multiple checkbox

2008-12-01 Thread mario
howDiv); > (replace 'Model' with the name of your model) > > And I'm sure it's just as easy (or easier) in jQuery or other > frameworks > > hth > grigri > > On Dec 1, 2:37 pm, mario <[EMAIL PROTECTED]> wrote: > > > Hello, > >

cannot add onclick event on form input with multiple checkbox

2008-12-01 Thread mario
'type'=>'checkbox', 'onclick'=>"showDiv(this)")); ?> Is there any way to add onclick event on a form input with multiple checkbox? If none, are there any workarounds for this? Thanks, Mario --~--~-~--~~~---~--~~ Yo

Re: Where to find graham bird's AJAX tutorial?

2008-11-12 Thread mario
ic ajax-cakephp source codes and learn from it. On Nov 12, 3:42 pm, park <[EMAIL PROTECTED]> wrote: > Manning's jQuery in Action > > On Nov 12, 2:40 pm, mario <[EMAIL PROTECTED]> wrote: > > > Ok. I know now that the tutorial is outdated. > > I'm really look

Re: Where to find graham bird's AJAX tutorial?

2008-11-11 Thread mario
Ok. I know now that the tutorial is outdated. I'm really looking for nice tutorials about using ajax in cakephp. Are there any recommendations for this? Thanks, Mario On Nov 12, 12:04 pm, mario <[EMAIL PROTECTED]> wrote: > Hi guys, > > Where can I find graham bird's t

Where to find graham bird's AJAX tutorial?

2008-11-11 Thread mario
Hi guys, Where can I find graham bird's tutorial? The link (http://grahambird.co.uk/cake/tutorials/ajax.php) no longer works. If anyone have a copy of the tutorial, please share it as well as the source code files. Thanks, Mario --~--~-~--~~~---~--~

Re: Looking for suggestion to filter data in cakephp

2008-10-30 Thread mario
ot;getFilterFor($model_name)" which gathers the results from each rule. > > The reason for this setup was partly flexibility and partly the GUI. I > really wanted a humane gui. No wildcards or pseudo-sql. Simple selects > and meaningful words. Looking back it is not a very diff

Looking for suggestion to filter data in cakephp

2008-10-30 Thread mario
} ?> format('M d, Y (D)', $exhibit['Exhibit'] ['date_accessioned']); ?>

Re: Error in using 3rd party helper - ExcelWriter

2008-10-28 Thread mario
Thanks Samuel. Your suggestion works perfectly. Cheers! On Oct 28, 8:07 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > In the excell helper try adding > > var $helpers = array(); > > this has worked in some other older helpers when I upgraded to cake > 1.2  (note i have not used the excel help

Error in using 3rd party helper - ExcelWriter

2008-10-28 Thread mario
"action", "data", "themeWeb", "plugin" ) $c = 8 $j = 8 It is very annoying to see this notice every time I set my cakephp debug level to 2. Any idea on why this notice occurs? Has anyone found a workaround to remo

Re: concatenation in find('list')

2008-10-28 Thread mario
Thanks. But Chad's suggestion works fine for me. I suggest you also try it. =) On Oct 28, 6:29 am, "Liebermann, Anja Carolin" <[EMAIL PROTECTED]> wrote: > Hi Mario, > > I have similar situations in my application and I guess there is no automatic > way to d

concatenation in find('list')

2008-10-26 Thread mario
ossibility that there would be duplicates for firstnames. It would be better if firstname and lastname would be displayed in my view's combobox and still would match to a corresponding salesperson.id. Is there a way to do this? Thanks, Mario --~--~-~--~~~---~--~

Reset Auto Increment of SQL database command in Cakephp

2008-10-26 Thread mario
table? Is there any command in cakephp that would reset the Auto Increment of the table right after you delete a record? After which it would then point it's auto increment reference at the end of the table's largest id. Thanks, Mario --~--~-~--~~~-

Re: find('list') that displays blank (combobox)

2008-09-27 Thread mario
Thanks a lot. I got it working now. =) On Sep 27, 8:54 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > input('collection_id', array('label'=> false, > 'empty' => true)); ?> > > or > > input('collection_id', array('label

find('list') that displays blank (combobox)

2008-09-27 Thread mario
_id', array('label'=> false)); ?> As you can see, it will try to create a combobox based from my collections list. My problem is that since i'm doing a search here, I want to have a blank field display at the top most of my combobox which find('list') can't se

Re: How to validate password length

2008-09-27 Thread mario
i already have a 'password2' in my form for password confirmation. Can you please give me an example of what you are referring about? Thanks.^_^ On Sep 27, 3:50 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > >  >  I want to validate the length of my password using the cakephp model's > >  >  val

How to validate password length

2008-09-27 Thread mario
e' => 'Username must have at least 6 characters' ) ), 'password' => array( 'rule' => array('minLength', '6'), 'requ

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
['password'] = > $this->data['User']['password']; >                                         $this->Cookie->write('User', $cookie, > true, '+2 weeks'); > >                                 $cookie = $this->Cookie->read('User'); >                                 if ($cookie) >    

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
{ $login = $this->Auth->login($this->data); if($login) { $this->redirect($this->Auth->redirect()); } } Thanks, Mario On Sep 24, 4:03 pm, Fran Iglesias <[EMAIL PROTECTED]> wrote: > El 24/09/2008, a las 9:31, mario escribió:

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
;Auth->login() might have some problem. Any suggestions? On Sep 24, 3:07 pm, Fran Iglesias <[EMAIL PROTECTED]> wrote: > El 24/09/2008, a las 9:02, mario escribió: > > > This time, it failed to login the user. It seems like there is some > > problem in terms of hashing my

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
is some problem in terms of hashing my password. Did I missed something here? On Sep 24, 2:31 pm, Fran Iglesias <[EMAIL PROTECTED]> wrote: > El 24/09/2008, a las 7:28, mario escribió: > > > Do anyone of you have an idea on how to automatically login > > after signing-up usin

Re: Automatic Login after Signup using Auth Component

2008-09-23 Thread mario
24, 1:39 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > 2008/9/24 mario <[EMAIL PROTECTED]> > > > > > Hello everyone, > > > Do anyone of you have an idea on how to automatically login > > after signing-up using Auth Component? > > >

Automatic Login after Signup using Auth Component

2008-09-23 Thread mario
; '1'); $this->set('loggedIn', $this->Auth->user('id')); $result = $this->User->findById($this->Auth->user('id')); } function isAuthorized() {

Re: Generate Excel from database problem (rendering layout)

2008-09-19 Thread mario
xcel'); won't work. But I also don't think that this is a deprecated api. On Sep 18, 3:47 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > have you tried using $this->log() > > and double check that App::import is calling the right file > > 2008/9/18

Re: Generate Excel from database problem (rendering layout)

2008-09-18 Thread mario
Thanks majna. But I can't set the debug mode to 1 since the script will no longer run in 1.2 if I do that. On Sep 18, 12:23 pm, majna <[EMAIL PROTECTED]> wrote: > set debug mode to 1. maybe you get "missingAction" error form cake. > > On Sep 18, 7:07 pm, m

Generate Excel from database problem (rendering layout)

2008-09-18 Thread mario
port function) and renaming excel.ctp to default.ctp and everything works fine. I think the problem has to do with rendering my layout and I just can't find the solution for it. Please help me since I'm already beyond my deadline in my project. Thanks, Mario --~--~-~--~~

Re: from database to excel (Missing files in the bakery)

2008-09-18 Thread mario
gt; the helper or not... > > They will stay there for a while but not forever. > > /Martin > > On Sep 18, 3:57 pm, mario <[EMAIL PROTECTED]> wrote: > > > > > Hello everyone, > > > I wanted to generate an excel report from my database query > > an

from database to excel (Missing files in the bakery)

2008-09-18 Thread mario
http://webdesign.janenanneriet.nl/excel_writer.zip http://webdesign.janenanneriet.nl/ole.zip Does anyone of you have these files? (would be better if working in cakephp 1.2) Please share it. I really need them in my project. Thanks, Mario --~--~-~--~~~---~--~~ You received

Re: Auth Component admin login redirect for unauthorized page access

2008-08-24 Thread mario
Thanks Marcin. I solve the problem by using $this->Auth->loginAction() of the Auth Component. On Aug 24, 9:02 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > C'mon man- do some searching. I suggest looking at the api at auth > component properties. > HTH

Auth Component admin login redirect for unauthorized page access

2008-08-24 Thread mario
e'); $this->Auth->allow('home'); $this->Auth->authorize = 'controller'; $this->set('loggedIn', $this->Auth->user('id')); } function isAuthorized() { return

Authentication for admin and public user in one(1) app

2008-08-23 Thread mario
. I've created a separate table for the admin, namely, "admins" table. I've also created its' own model,view, and controller. Now I'm stuck in implementing the admins' login/logout feature because my main problem is that the app_controller that I made is already &