Re: Error menu.ctp

2014-09-04 Thread Deruel Roland
Hi this part of my problem is resolv but i dont no see now the link of the navbar but my resuest db is ok my menu.ctp ?php $pages = $this-requestAction(array('controller'='pages','action'=' menu')); ? ul class=nav navbar-nav ?php foreach($pages as $k=$v): $v = current($v); ? li?php

Model::$virtualFields with associated data

2013-05-02 Thread Roland
exclude the virtual field for unsufficient recursion levels or for to always load the association? What is the best practise here? Thanks Roland -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

Re: Cakephp - ExtJS or YUI!

2013-03-10 Thread Roland
For new people looking into this, check out http://banchaproject.org It will integrate CakePHP with ExtJS, automatically map all data and is just really nice to work with! Cheers, Roland Am Samstag, 4. April 2009 06:35:27 UTC+2 schrieb baur79: Hi everyone, is there any of you have

Re: How combine CakePHP + ExtJS?

2013-03-10 Thread Roland
For people finding this tread from searching, check out http://banchaproject.org It already does a lot of things for you, it just perfectly integrates ExtJS into CakePHP! Cheers Am Mittwoch, 9. Januar 2008 09:05:49 UTC+1 schrieb inma: Hi, I'm newbie in CakePHP and ExtJS. I'm

Re: CakePHP and Bancha

2013-01-07 Thread Roland
Hello! Yes. What do you need? Please be more specific. You can also email to supp...@banchaproject.org Cheers Roland Am Dienstag, 21. Juni 2011 03:24:28 UTC+2 schrieb tAO...: Hi there, im just trying to get configured the bancha's new framework to communicate cakePHP and ExtJS. has

How do I get the minimum and maximum of a field.

2012-07-20 Thread Awemo Roland
aforementioned attributes in one query.I have succeeded to do this in 4 separate queries, but I have not succeeded to reduce this to one query. Here is what I currently have, http://bin.cakephp.org/view/1004813660. I would appreciate any help. Roland. -- Our newest site for the community: CakePHP

Sending ACL information to the client

2012-03-06 Thread Roland
be a good way to share this performant? Maybe use ARO as model and send all information? Any tips? thanks Roland -- 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

Re: Sending ACL information to the client

2012-03-06 Thread Roland
, '_update' = true, '_delete' = true, ), ) thanks Roland On 7 Mrz., 00:26, lowpass zijn.digi...@gmail.com wrote: You could set in the DOM. In your view, set class names or something similar in your eg. div tags. The have your JS modify things based on what it finds. On Tue, Mar

Re: How can I debug an ajax login call?

2011-12-02 Thread Roland
Read this for AJAX debugging: http://bakery.cakephp.org/articles/HeathNail/2010/08/20/debugging-with-firephp best regards Roland On 2 Dez., 11:29, heohni heidi.anselstet...@consultingteam.de wrote: Hi, I cannot login into my users area and I am using a ajax form: function login

Re: How to add a fixture to a plugin test?

2011-12-02 Thread Roland
Ah, of course^^ Thx, now it works :) best regards, Roland On 30 Nov., 04:46, euromark dereurom...@googlemail.com wrote: i think you just have to use ClassRegistry::init('ModelName); here On 29 Nov., 22:38, Roland kreativestal...@gmail.com wrote: None, that's the problem. I got non

Re: How to add a fixture to a plugin test?

2011-11-29 Thread Roland
None, that's the problem. I got non error or tips what is not working... but when I do $article-find('all') I get an empty result... thanks Roland On 29 Nov., 04:44, José Lorenzo jose@gmail.com wrote: this should just work, what error are you getting? -- Our newest site for the community

Re: How to add a fixture to a plugin test?

2011-11-27 Thread Roland
dispatching system test I want to execute. thx Roland On 25 Nov., 21:54, euromark dereurom...@googlemail.com wrote: what do you mean with it doesnt work? how did you initialize/access the model then? some code would be great On 25 Nov., 15:26, Roland kreativestal...@gmail.com wrote

How to add a fixture to a plugin test?

2011-11-25 Thread Roland
'); But this doesn't work. What am I doing wrong? thanks Roland -- 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 questions. To unsubscribe from this group, send

Re: Where to publish new plugin?

2011-11-25 Thread Roland
Cool, thx. The plugin is currently in beta, so I wanted to write an article in maybe one month, when it is more stable. cheers Roland On 25 Nov., 02:44, Sam Sherlock sam.sherl...@gmail.com wrote: http://cakepackages.com/ you could also consider submitting a article for bakery too  - S

Where to publish new plugin?

2011-11-24 Thread Roland
Hi! Is there any central place to announce a plugin I just write? cheers Roland --- banchaproject.org Combining ExtJS and CakePHP -- 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

Re: How to specify a count(id) field for find method

2011-08-16 Thread Roland Pish
Wow! I could do it with a virtual field. Thanks gremlin! On 15 ago, 23:14, gremlin abba.bry...@gmail.com wrote: Or use a virtual field. On Aug 15, 11:44 am, Roland Pish rolandp...@gmail.com wrote: Thanks Jeremy. I looked at the cookbook with the link you provided and I realized

Re: How to specify a count(id) field for find method

2011-08-15 Thread Roland Pish
(Product.price) as price'), 'group' = 'Product.type'); Jeremy Burns Class Outfit http://www.classoutfit.com On 14 Aug 2011, at 22:54, Roland Pish wrote: Thanks for your reply euromark. I tried the find-('count' but it just returns a number, not the records grouped by 'status

How to specify a count(id) field for find method

2011-08-14 Thread Roland Pish
Hello. I need to issue a query like: select count(id) as total,status from members group by status When specifying the fields for the model find method I do this: $fields = array('count(Member.id) as total','Member.status'); $members = $this-Member-find('all',array('fields'=

Re: How to specify a count(id) field for find method

2011-08-14 Thread Roland Pish
Aug., 22:29, Roland Pish rolandp...@gmail.com wrote: Hello. I need to issue a query like: select count(id) as total,status from members group by status When specifying the fields for the model find method I do this: $fields = array('count(Member.id) as total','Member.status

Custom controller name

2011-07-30 Thread Roland Pish
I have a model named Cal. I wanted its table name to cal (not cals). Now, I would like that its controller could be accessed as: mysite.com/ cal/* (and avoid being accessed as mysite.com/cals/*). A plus would be that I can declare the controller as: class CalController extends... Is this

Re: Custom controller name

2011-07-30 Thread Roland Pish
' = 'index')); but you can have the model useTable an 'some_unconventional_name' with the following in the model     public $useTable = 'cal';  - S On 30 July 2011 23:43, Roland Pish rolandp...@gmail.com wrote: I have a model named Cal. I wanted its table name to cal (not cals). Now

Question about pagination

2011-05-02 Thread Roland Pish
but I haven't found a way to change that. Is it possible? Thanks in advance. Roland. -- 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 questions

Re: $this-Session-valid() strangely returning false

2011-03-29 Thread Roland Pish
: if($this-Session-check('somvar') == true) {  // Session exists} else {  // Session does not exist } On 27 March 2011 19:09, Roland Pish rolandp...@gmail.com wrote: Hello there. I have this code: $this-Session-write('somevar',array(1,6)); // Creating somevar test session

$this-Session-valid() strangely returning false

2011-03-27 Thread Roland Pish
Hello there. I have this code: $this-Session-write('somevar',array(1,6)); // Creating somevar test session variable debug($this-Session-read()); // Dumping session contents. NOTE: this displays correctly the contents of somevar if ($this-Session-valid()) { debug('Session is valid'); } else {

Question about ACL

2010-09-03 Thread Roland Pish
Hi there. I'm starting with a project which will need the use of ACL to control permissions. These are the tables involved in permissions: Users (a user always will belong to a group) Groups Operations Permissions will be established only between Groups and Operations like: Group 1 are granted

How to involve two databases in a single sql query?

2010-08-12 Thread Roland Pish
Hi. I'm developing a project which needs to access two databases in a single sql query (or in a single Find call), so my question is if in cakephp is possible to perform a Find like: select * from `database1`.`table` where `database1`.`table`.`id` in (select id from `database2`.`table`) Thanks

Re: Validation errors not shown in a form

2010-07-30 Thread Roland Pish
, 04:13, Marco marco.perg...@gmail.com wrote: Are you sure you are using the $form-input for all the fields and $form-create? On Jul 30, 2:19 am, Norman Paniagua normanpania...@gmail.com wrote: Can you show your code? --- Norman Paniagua 2010/7/29 Roland Pish rolandp...@gmail.com Hi

Validation errors not shown in a form

2010-07-29 Thread Roland Pish
Hi. Suddenly a form stopped showing the error messages with the div class=error-message beside input fields with validation. When a validation error occurs. If I debug($this-Themodel- validationErrors) it shows me the errors but there is no div class=error-message anymore. What could be wrong?

Re: Question about slugs

2010-07-15 Thread Roland Pish
/miles /team/lakers /band/u2 Etc. On Jul 14, 4:23 pm, Roland Pish rolandp...@gmail.com wrote: Thanks a lot Sam. Great idea. I'll add the routes for the other controllers. Regards. On 14 jul, 16:33, Sam s...@masterscommission360.com wrote: Above your route for the slugs you need

Question about slugs

2010-07-14 Thread Roland Pish
Hi. I have urls like this in my project: www.mysite.com/practitioners/view/1 and I want to convert them to: www.mysite.com/the-name-of-the-practitioner So I started using slugs (and the corresponding db field) and configured this: Router::connect('/:slug/

Re: Question about slugs

2010-07-14 Thread Roland Pish
'='example', 'action' = 'index')); Or, you could modify your slugs routing and add a path before the slug e.g. Router::connect('example/:slug/ *',array('controller'='practitioners','action'='view')); On Jul 14, 3:28 pm, Roland Pish rolandp...@gmail.com wrote: Hi. I have urls like this in my

Can I read a session variable inside the model?

2010-06-29 Thread Roland Pish
Hi! I would like to know if I can read a session variable in the model, I tried with: $this-Session-read... and with Session::read... but none of them work. Thanks in advance. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: Can I read a session variable inside the model?

2010-06-29 Thread Roland Pish
-user()); } On Jun 29, 5:59 pm, Roland Pish rolandp...@gmail.com wrote: Hi! I would like to know if I can read a session variable in the model, I tried with: $this-Session-read... and with Session::read... but none of them work. Thanks in advance. Check out the new CakePHP

Re: HABTM find question

2010-06-18 Thread Roland Pish
in the CakePHP book, see:http://book.cakephp.org/view/1039/Associations-Linking-Models-Togethe... The last example is the one. Maybe it can be applied to your issue :) Enjoy,    John On Jun 18, 6:40 am, Roland Pish rolandp...@gmail.com wrote: Hi! I've been struggling with something that I cannot

HABTM find question

2010-06-17 Thread Roland Pish
Hi! I've been struggling with something that I cannot seem to get working. I have this relationship: Treatment HABTM Symptom What I want to do is: search treatments by symptom, and the result must display treatments fields (id, name, cost, etc). For now, I've been doing this in

Get rid of render time in ajax response

2010-06-10 Thread Roland Pish
Hi! I'm doing some ajax calls and I realized that cakephp is appending the render time to the ajax response; something like: !-- 1.5382s -- I set debug to 2 because I'm in the development phase. I assume that setting debug to 0 gets rid of the render time, but, keeping the debug set to 2 is there

Strange error after model save method

2010-06-07 Thread Roland Pish
Hello. I was creating an add form for a model called Practitioner. Everything seems to work fine, after submitting the form changes are saved successfully in Practitioner table and in every table related to Practitioner model, but a weird error is showing up that's claiming for a rght field in my

Validation from controller question.

2010-06-03 Thread Roland Pish
Hello. I need to do this validation in a field in a controller: $this-Model-set($this-data); if ($this-Model-validates(array('fieldList' = array('some_field' { // code to create other fields and send an email } Then (as it nothing happened above) I call $this-Model-save($this- data); as a

Re: Validation from controller question.

2010-06-03 Thread Roland Pish
Sorry for the noise. I found what I was doing wrong. I was calling the Model-validates() before tweaking another fields data (whose errors were shown up). Now I call the Model-validates() immediately before the Model-save() and now it's working as expected. Cheers. On 3 jun, 11:54, Roland Pish

One to Many question

2010-06-02 Thread Roland Pish
Hello. I don't know if I'm doing things well, so I'll fire my question. I have a model relationship this way: Student hasMany ForeignSchool. First, I'll show my scenario, files and relevant code, then I'll explain the problem. SCENARIO: * Model file student.php (hasmany declaration): var $hasMany

Re: One to Many question

2010-06-02 Thread Roland Pish
: I'd try this: $foreignSchools = $this-Student-ForeignSchool-find('all', array('conditions' = array('ForeignSchool.student_id' = 2))); (hope the number of brackets is right...) Jeremy Burns jeremybu...@me.com On 3 Jun 2010, at 05:51, Roland Pish wrote: Hello. I don't know if I'm

Re: One to Many question

2010-06-02 Thread Roland Pish
Thanks Graham! So, this conditions array is mandatory in find method right? Regards On 2 jun, 23:01, Roland Pish rolandp...@gmail.com wrote: Thanks for your reply Jeremy. I was avoiding the conditions array because I thought cake would do the magic and the automatic filter

Re: One to Many question

2010-06-02 Thread Roland Pish
Ok, got it. I'll go for this containable behaviour right now. Thanks for you replies guys. Regards On 2 jun, 23:03, Roland Pish rolandp...@gmail.com wrote: Thanks Graham! So, this conditions array is mandatory in find method right? Regards On 2 jun, 23:01, Roland Pish rolandp

Re: Join table question

2010-05-28 Thread Roland Pish
://book.cakephp.org/view/1044/hasAndBelongsToMany-HABTM Jeremy Burns jeremybu...@me.com On 26 May 2010, at 22:21, Roland Pish wrote: Hello. I have two tables with a many-to-many relationship between them: practitioners and practice_areas. So, the join table name should

HABTM Question.

2010-05-28 Thread Roland Pish
Hi! I've been struggling for a long time with something and I don't seem to get it. I did the Posts/Tags HABTM Select example from this page: http://mrphp.com.au/code/working-habtm-form-data-cakephp So far so good, everything works ok. I wanted to try the same example but asumming that the

Re: HABTM Question.

2010-05-28 Thread Roland Pish
it? Jeremy Burns jeremybu...@me.com On 29 May 2010, at 04:20, Roland Pish wrote: Hi! I've been struggling for a long time with something and I don't seem to get it. I did the Posts/Tags HABTM Select example from this page: http://mrphp.com.au/code/working-habtm-form-data-cakephp So far

Re: HABTM Question.

2010-05-28 Thread Roland Pish
'); echo $form-input('body'); echo $form-input('FunnyTag.FunnyTag'); ? /fieldset ?php echo $form-end('Submit');? On 28 mayo, 22:08, Roland Pish rolandp...@gmail.com wrote: Thanks Jeremy. In fact I did that and didn't solve the problem. I'm

Re: HABTM Question.

2010-05-28 Thread Roland Pish
...@me.com wrote: Ah. Try this: $funnyTags = $this-Post-FunnyTag-find('list',array('fields'=array('id','name'))); If that doesn't fix it, try this as well: echo $form-input('FunnyTag'); Jeremy Burns jeremybu...@me.com On 29 May 2010, at 05:46, Roland Pish wrote: I think I'll post

Re: HABTM Question.

2010-05-28 Thread Roland Pish
of $funnyTags)? Best regards. On 28 mayo, 22:57, Roland Pish rolandp...@gmail.com wrote: Thanks, We are getting closer!! After using $funnyTags now the select is populated correctly but the funny tags aren't selected according to what is on the database. I tried this: echo $form-input('FunnyTag

Re: HABTM Question.

2010-05-28 Thread Roland Pish
. But here's a page that refers specifically to HABTM: http://book.cakephp.org/view/1390/Automagic-Form-Elements Jeremy Burns jeremybu...@me.com On 29 May 2010, at 06:10, Roland Pish wrote: It worked!! Finally!! There was something weird in the database. I submitted the form

Join table question

2010-05-26 Thread Roland Pish
Hello. I have two tables with a many-to-many relationship between them: practitioners and practice_areas. So, the join table name should be: practice_areas_practitioners? Is this correct according to cakephp conventions? Is more than one underscore allowed for a join table name? I'm afraid that I

Re: Bakery...arrogance or plain lack of attention

2010-05-10 Thread Roland Bock
* good friend and ask for his or her *honest* opinion). Regards, Roland 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 group. To post to this group

Model data structure inconsistent?

2010-05-07 Thread Roland Bock
- Child I'd really like to understand why the data structure is as it is and/or how it can be changed to my expectations. Thanks and regards, Roland Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received

Re: Model data structure inconsistent?

2010-05-07 Thread Roland Bock
? Not yet, I am afraid. Maybe I was able to intrigue you with my proposal? :-) Regards, Roland Enjoy, John On May 7, 10:05 am, Roland Bock feedback2...@eudoxos.de wrote: Hi, sorry to bring this up again, but I firmly believe that model data structure is inconsistent. I really don't

Re: Model data structure inconsistent?

2010-05-07 Thread Roland Bock
? b) Do you think it would make sense to send a patch that would change the data structure (maybe for cake-1.4)? Thanks and regards, Roland On May 7, 12:30 pm, Roland Bock feedback2...@eudoxos.de wrote: Hi, John Andersen wrote: I do think that if you don't like something in CakePHP, please

Re: Model data structure inconsistent?

2010-05-07 Thread Roland Bock
to the database has to be changed :) Yes, and validation, too, I guess... I hope to find the time :-) Thanks for your help! Regards, Roland You could probably write a Behaviour, but that will take additional processing, which slows down the application. On May 7, 2:48 pm, Roland

Re: Model data structure inconsistent?

2010-05-07 Thread Roland Bock
Jamie, thanks for the reassurance :-) Submitting a ticket certainly is a good idea! Regards, Roland Jamie wrote: Hi Roland, What you're suggesting is a pretty major change to data returned by Cake - major in that there would be a lot of user-end code that needs changing if this were

Re: Model data structure inconsistent?

2010-05-07 Thread Roland Bock
, Roland On Fri, May 7, 2010 at 10:33, Roland Bock feedback2...@eudoxos.de wrote: Jamie, thanks for the reassurance :-) Submitting a ticket certainly is a good idea! Regards, Roland Jamie wrote: Hi Roland, What you're suggesting is a pretty major change to data returned by Cake - major

Re: Model data structure inconsistent?

2010-05-07 Thread Roland Bock
relationship. As of now, in a simple A - B - C relationship, B found via Model A and B found via Model B require different code because they are structured differently. Personally, I consider that inconsistent. On May 7, 9:05 am, Roland Bock feedback2...@eudoxos.de wrote: Matthew Powell wrote

Re: Structure of data returned by $this-Model-find

2010-05-05 Thread Roland Bock
Hi, thanks for the link, but I fail to see how this will help me with cake models? I would like to use cake's mechanisms like validate, save, find, but with a consistent node structure. Thanks and regards, Roland gabriel wrote: Hi, In order to make a node system with a standard way, check

Re: Structure of data returned by $this-Model-find

2010-05-05 Thread Roland Bock
level as its parent, sometimes it is included. Same happens with Node. This is an inconsistent structure... Apart from that, now my root querycategory is 'Querycategory' while all other querycategories are 'Node'. Thanks and regards, Roland AD7six wrote: On May 5, 10:05 am, AD7six

Re: Structure of data returned by $this-Model-find

2010-05-05 Thread Roland Bock
level. Child is contained in Node. But since the relationship between Parent and Node is the same as between Node and Child I would expect the same for the data structure. Thanks and regards, Roland Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Structure of data returned by $this-Model-find

2010-05-04 Thread Roland B
is always contained in it's parent, always being called 'Querygroup'. Querycategory is always contained in its parent, always being called 'Querycategory'. Is there a standard way to achieve this? Using cake-1.2. Thank you very much in advance, Roland Check out the new CakePHP Questions site

Re: Trouble with Ajax and Session

2009-06-19 Thread Roland Bock
Hi, not sure if the original post ever made it past the moderators. Anyway, the problem seems to be fixed now, after upgrading from the cake-version provided by Ubuntu-8.04 (1.2.0.5875~prebeta) to cake 1.2.3. Regards, Roland Roland B wrote: Hi, I have a web application using cakephp-1.2

Trouble with Ajax and Session

2009-06-16 Thread Roland B
page? b) why is the session cookie being sent 4 times per request? Any idea how to fix the Ajax/session problem? Thank you very much in advance, Roland --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group

Reuse Cake based models in external maintanance scripts

2007-07-16 Thread roland
Hi there, is there an easy way to reuse the models defined in an Cake based application for example to use in a database maintance script which might be called via cron? Thank you in advance. with best regards, Roland --~--~-~--~~~---~--~~ You received